Skip to content

Commit 46a6060

Browse files
committed
f
1 parent 9107400 commit 46a6060

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/common/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export function adaptCSS(sheet: AdaptableStylesheet | AdaptableStylesheet[]): Ad
159159

160160
export function getRelativeTime(d1: Date, d2: Date = new Date()): string {
161161
const elapsed = d1.getTime() - d2.getTime();
162-
const rtf = new Intl.RelativeTimeFormat(CurrentLocale, { numeric: "auto" });
162+
const rtf = new Intl.RelativeTimeFormat("default", { numeric: "auto" });
163163

164164
const _timeUnits: [Intl.RelativeTimeFormatUnit, number][] = [
165165
["year", 1000 * 60 * 60 * 24 * 365],

0 commit comments

Comments
 (0)