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 8a4ca3b commit 06ae2e8Copy full SHA for 06ae2e8
1 file changed
src/app/util/util.ts
@@ -42,7 +42,7 @@ export function dateStr(
42
locale: string | null | undefined = undefined
43
): string {
44
if (!date) return '';
45
- if (!locale) locale = navigator.language;
+ if (!locale || locale === 'BROWSER') locale = navigator.language;
46
47
return date.toLocaleDateString(locale, {
48
year: 'numeric',
0 commit comments