We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9107400 commit 46a6060Copy full SHA for 46a6060
web/src/common/utils.ts
@@ -159,7 +159,7 @@ export function adaptCSS(sheet: AdaptableStylesheet | AdaptableStylesheet[]): Ad
159
160
export function getRelativeTime(d1: Date, d2: Date = new Date()): string {
161
const elapsed = d1.getTime() - d2.getTime();
162
- const rtf = new Intl.RelativeTimeFormat(CurrentLocale, { numeric: "auto" });
+ const rtf = new Intl.RelativeTimeFormat("default", { numeric: "auto" });
163
164
const _timeUnits: [Intl.RelativeTimeFormatUnit, number][] = [
165
["year", 1000 * 60 * 60 * 24 * 365],
0 commit comments