diff --git a/framework/core/js/@types/global/index.d.ts b/framework/core/js/@types/global/index.d.ts index 3981ce685..3fa15be23 100644 --- a/framework/core/js/@types/global/index.d.ts +++ b/framework/core/js/@types/global/index.d.ts @@ -3,6 +3,7 @@ import Mithril from 'mithril'; // Other third-party libs import * as _dayjs from 'dayjs'; +import 'dayjs/plugin/relativeTime'; import * as _$ from 'jquery'; // Globals from flarum/core diff --git a/framework/core/js/src/common/utils/humanTime.ts b/framework/core/js/src/common/utils/humanTime.ts index 6586658ba..330323ea3 100644 --- a/framework/core/js/src/common/utils/humanTime.ts +++ b/framework/core/js/src/common/utils/humanTime.ts @@ -1,5 +1,4 @@ import dayjs from 'dayjs'; -import 'dayjs/plugin/relativeTime'; /** * The `humanTime` utility converts a date to a localized, human-readable time-