1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 10:52:47 +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 326976c83f
commit bf7ccebae8
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;
}
}