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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user