mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-09-11 08:55:32 +03:00
fix powertimeline daylights savings on mobile ui #5997
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
95e7997e60
commit
f9af1ffc90
@ -4005,7 +4005,7 @@
|
||||
}
|
||||
x += '<tr style=' + (((count % 2) == 0) ? 'background-color:#DDD' : '') + '><td><div> ' + printDate(date) + '<div></div></div></td><td><div>' + datavalue + '</div></td></tr>';
|
||||
++count;
|
||||
date = new Date(date.getTime() - (1000 * 60 * 60 * 24)); // Substract one day
|
||||
date = new Date(date.getFullYear(), date.getMonth(), date.getDate() - 1);
|
||||
}
|
||||
QH('p10html2', '<table style="color:black;background-color:#EEE;border-color:#AAA;border-width:1px;border-style:solid;border-collapse:collapse;width:calc(100% - 18px);margin:9px" border=0 cellpadding=2 cellspacing=0><tbody><tr style=background-color:#AAAAAA;font-weight:bold><th scope=col style=text-align:center;width:90px>' + "Day" + '</th><th scope=col style=text-align:center>' + "Power State" + '</th></tr>' + x + '</tbody></table>');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user