1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 02:42:48 +00:00

added eastern time stamp

This commit is contained in:
2015-12-17 13:52:53 -06:00
parent 0057417ce7
commit 4e8d8bfab5

View File

@@ -25,14 +25,14 @@ router.get('/', function(req, res, next) {
//converting 24 hours time to AM or PM //converting 24 hours time to AM or PM
if (hours < 12){ if (hours < 12){
info[i].lastUpdate = dateString + " - " + hours + ":" + minutes + " AM"; info[i].lastUpdate = dateString + " - " + hours + ":" + minutes + " AM (ET)";
} }
else if (hours == 12){ else if (hours == 12){
info[i].lastUpdate = dateString + " - " + hours + ":" + minutes + " PM"; info[i].lastUpdate = dateString + " - " + hours + ":" + minutes + " PM (ET)";
} }
else{ else{
hours = hours - 12; 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 //compared current time to last db entry - 1200000 milliseconds is 2 minutes