Fixing locale
This commit is contained in:
parent
f9236d8f46
commit
2a689aeb0c
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ import { ContentFromAllFeeds } from "./@types/bubo";
|
||||||
*/
|
*/
|
||||||
env.addFilter("formatDate", function (dateString): string {
|
env.addFilter("formatDate", function (dateString): string {
|
||||||
const date: Date = new Date(parseInt(dateString));
|
const date: Date = new Date(parseInt(dateString));
|
||||||
return !isNaN(date.getTime()) ? date.toLocaleString() : dateString;
|
return !isNaN(date.getTime()) ? date.toLocaleDateString() : dateString;
|
||||||
});
|
});
|
||||||
|
|
||||||
env.addGlobal("now", (new Date()).toUTCString());
|
env.addGlobal("now", (new Date()).toUTCString());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue