1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-11 18:32:50 +00:00

added eastern time stamp

This commit is contained in:
2015-12-17 13:52:53 -06:00
parent 345432ef15
commit b584ed7f35

View File

@@ -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