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