From cacad142b6f385582397be30555c665bc51df997 Mon Sep 17 00:00:00 2001 From: George Mandis Date: Thu, 28 Nov 2019 16:20:04 -0800 Subject: [PATCH] Changed timestamp to UTC --- src/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 87a3b7d..589f3ad 100644 --- a/src/index.js +++ b/src/index.js @@ -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) {