1
0
forked from notBrad/bubo-rss

Changed timestamp to UTC

This commit is contained in:
George Mandis 2019-11-28 16:20:04 -08:00
parent a3a4685819
commit cacad142b6

View File

@ -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) {