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

changes to graph and fixed time display on sensors page

This commit is contained in:
2015-12-21 10:31:08 -06:00
parent ad7a0b8204
commit 1e7623abe0
3 changed files with 17 additions and 14 deletions

View File

@@ -37,6 +37,11 @@ router.get('/', function(req, res, next) {
info[i].info_link = info_link;
//adjust minutes to show up correctly
if (minutes < 10){
minutes = "0" + minutes;
}
//converting 24 hours time to AM or PM
if (hours == 0){
hours = 12;
@@ -60,8 +65,6 @@ router.get('/', function(req, res, next) {
else {
info[i].connected = false;
}
}