Skip to content

Commit 06ae2e8

Browse files
committed
Settings: Fixed date format bug
1 parent 8a4ca3b commit 06ae2e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/util/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function dateStr(
4242
locale: string | null | undefined = undefined
4343
): string {
4444
if (!date) return '';
45-
if (!locale) locale = navigator.language;
45+
if (!locale || locale === 'BROWSER') locale = navigator.language;
4646

4747
return date.toLocaleDateString(locale, {
4848
year: 'numeric',

0 commit comments

Comments
 (0)