forked from notBrad/bubo-rss
Changed timestamp to UTC
This commit is contained in:
parent
a3a4685819
commit
cacad142b6
@ -20,8 +20,7 @@ env.addFilter("formatDate", function(dateString) {
|
|||||||
return formattedDate !== 'Invalid Date' ? formattedDate : dateString;
|
return formattedDate !== 'Invalid Date' ? formattedDate : dateString;
|
||||||
});
|
});
|
||||||
|
|
||||||
const buildDate = new Date();
|
env.addGlobal('now', (new Date()).toUTCString() );
|
||||||
env.addGlobal('now', `${buildDate.toLocaleDateString()} ${buildDate.toLocaleTimeString()}` );
|
|
||||||
|
|
||||||
// parse XML or JSON feeds
|
// parse XML or JSON feeds
|
||||||
function parseFeed(response) {
|
function parseFeed(response) {
|
||||||
|
Loading…
Reference in New Issue
Block a user