mirror of
https://github.com/georgemandis/bubo-rss.git
synced 2025-12-15 12:45:24 +00:00
Changed timestamp to UTC
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user