refactor: use locale format from moment

This commit is contained in:
Methapon2001 2024-12-18 09:15:06 +07:00
parent a7158a7511
commit f9f0d1d313

View file

@ -72,7 +72,7 @@ export function setLang(lang: Lang): Lang {
localStorage.setItem('currentLanguage', lang);
// TODO: Make date time get locale from i18n instead of telling it to use specific lang.
setDateTimeLocale(lang === Lang.English ? 'en-us' : 'th-th');
setDateTimeLocale(lang === Lang.English ? 'en' : 'th');
return lang;
}