From 6c1a251cb5e420ba0d706c49354a84406e38d32d Mon Sep 17 00:00:00 2001 From: Jeff Steward Date: Fri, 24 Apr 2020 09:55:30 -0400 Subject: [PATCH] fix datetime format --- routes/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/index.js b/routes/index.js index d47be8e..2d09f3c 100644 --- a/routes/index.js +++ b/routes/index.js @@ -40,8 +40,8 @@ router.get('/', function(req, res, next) { d.setHours(d.getHours() + 2); let output = { - lastexport: e.toLocaleString('en-US'), - lastrefresh: d.toLocaleString('en-US'), + lastexport: e.toLocaleString('en-US', {timeZone: "America/New_York"}), + lastrefresh: d.toLocaleString('en-US', {timeZone: "America/New_York"}), recordcount: results['info']['totalrecords'] };