datetime: user browser lang for date formatting

pull/81/head
OFF0 11 months ago
parent 5ef45d93d3
commit ea21e47cad
Signed by: offbyn
GPG Key ID: 94A2F643C51F37FA

@ -31,7 +31,7 @@ export const bounce = (
*
* console.log(dateTime.format(new Date()));
*/
export const dateTime = new Intl.DateTimeFormat('de-ch' /* navigator.language */, {
export const dateTime = new Intl.DateTimeFormat(navigator.language /* navigator.language */, {
dateStyle: 'medium',
timeStyle: 'short',
});

Loading…
Cancel
Save