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;
});
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) {