mirror of
https://github.com/georgemandis/bubo-rss.git
synced 2024-12-23 08:57:08 +00:00
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;
|
||||
});
|
||||
|
||||
const buildDate = new Date();
|
||||
env.addGlobal('now', `${buildDate.toLocaleDateString()} ${buildDate.toLocaleTimeString()}` );
|
||||
env.addGlobal('now', (new Date()).toUTCString() );
|
||||
|
||||
// parse XML or JSON feeds
|
||||
function parseFeed(response) {
|
||||
|
Loading…
Reference in New Issue
Block a user