mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: shorter function
This commit is contained in:
@@ -127,9 +127,7 @@ if (typeof window !== 'undefined') {
|
|||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
var dtFormat = new Intl.DateTimeFormat(userLang, options);
|
var dtFormat = new Intl.DateTimeFormat(userLang, options);
|
||||||
formatFn = function (date) {
|
formatFn = dtFormat.format;
|
||||||
return dtFormat.format(date);
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var iso;
|
var iso;
|
||||||
|
|||||||
Reference in New Issue
Block a user