diff --git a/web/src/lib/components/admin-page/server-stats/server-stats-panel.svelte b/web/src/lib/components/admin-page/server-stats/server-stats-panel.svelte index 0c53a542ad..b0b236b865 100644 --- a/web/src/lib/components/admin-page/server-stats/server-stats-panel.svelte +++ b/web/src/lib/components/admin-page/server-stats/server-stats-panel.svelte @@ -18,7 +18,7 @@ $: [spaceUsage, spaceUnit] = getBytesWithUnit(stats.usageRaw); - const locale = navigator.languages; + const locale = navigator.language;
{assetDateTimeOriginal.toLocaleDateString(locale, {month:'short', day:'numeric', year: 'numeric'})}
++ {assetDateTimeOriginal.toLocaleDateString(locale, { + month: 'short', + day: 'numeric', + year: 'numeric' + })} +
- {assetDateTimeOriginal.toLocaleString(locale, {weekday:'short', hour: 'numeric', minute: '2-digit', timeZoneName:'longOffset'})} + {assetDateTimeOriginal.toLocaleString(locale, { + weekday: 'short', + hour: 'numeric', + minute: '2-digit', + timeZoneName: 'longOffset' + })}