From b1ea7059fc9ad3328356f6de501e56d9223938f6 Mon Sep 17 00:00:00 2001 From: Jeff Steward Date: Fri, 24 Apr 2020 10:03:27 -0400 Subject: [PATCH] fix time formatting --- routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/index.js b/routes/index.js index 2d09f3c..878b093 100644 --- a/routes/index.js +++ b/routes/index.js @@ -77,7 +77,7 @@ router.get('/', function(req, res, next) { // calculate the age of the data // freshness = number of hours old - const now = new Date(); + const now = new Date().toLocaleString('en-US', {timeZone: "America/New_York"}); const exportdate = new Date(data.dateoflastexport); const freshness = Math.round((now - exportdate)/3600000); data.datafreshness = freshness;