From b584ed7f35bd8e60095fdd24c0a399e328194370 Mon Sep 17 00:00:00 2001 From: mgerb42 Date: Thu, 17 Dec 2015 13:52:53 -0600 Subject: [PATCH] added eastern time stamp --- routes/sensors.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/sensors.js b/routes/sensors.js index f4d5b86..79d5b74 100644 --- a/routes/sensors.js +++ b/routes/sensors.js @@ -25,14 +25,14 @@ router.get('/', function(req, res, next) { //converting 24 hours time to AM or PM if (hours < 12){ - info[i].lastUpdate = dateString + " - " + hours + ":" + minutes + " AM"; + info[i].lastUpdate = dateString + " - " + hours + ":" + minutes + " AM (ET)"; } else if (hours == 12){ - info[i].lastUpdate = dateString + " - " + hours + ":" + minutes + " PM"; + info[i].lastUpdate = dateString + " - " + hours + ":" + minutes + " PM (ET)"; } else{ hours = hours - 12; - info[i].lastUpdate = dateString + " - " + hours + ":" + minutes + " PM"; + info[i].lastUpdate = dateString + " - " + hours + ":" + minutes + " PM (ET)"; } //compared current time to last db entry - 1200000 milliseconds is 2 minutes