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