Flarum (2.x)
    Preparing search index...

    Variable DURATION_UNITSConst

    DURATION_UNITS: { seconds: number; unit: DurationUnit }[] = ...

    The units a duration can be expressed in, largest first.

    A year here is 365 days and a week is 7 of those: these are for reading a stored number of seconds back as something a person would recognise, not for calendar arithmetic.