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

fixed sensors temp values

This commit is contained in:
2015-12-20 23:49:05 -06:00
parent ad38313ee2
commit 529a4a5d20
2 changed files with 7 additions and 3 deletions

View File

@@ -38,7 +38,11 @@ router.get('/', function(req, res, next) {
info[i].info_link = info_link;
//converting 24 hours time to AM or PM
if (hours < 12){
if (hours == 0){
hours = 12;
info[i].lastUpdate = dateString + " - " + hours + ":" + minutes + " AM (ET)";
}
else if (hours < 12){
info[i].lastUpdate = dateString + " - " + hours + ":" + minutes + " AM (ET)";
}
else if (hours == 12){