Rename Time.js to .ts
This commit is contained in:
parent
0c1b6a7f0d
commit
2a9a8ba7de
@ -61,7 +61,8 @@ var Time = {
|
|||||||
localeFormat(date, options, defaultValue) {
|
localeFormat(date, options, defaultValue) {
|
||||||
if (Conf['timeLocale']) {
|
if (Conf['timeLocale']) {
|
||||||
try {
|
try {
|
||||||
return Intl.DateTimeFormat(Conf['timeLocale'], options).format(date);
|
const formatter = Intl.DateTimeFormat(Conf['timeLocale'], options);
|
||||||
|
return formatter.format(date);
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
}
|
}
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
Loading…
x
Reference in New Issue
Block a user