fix powertimeline daylights savings on mobile ui #5997

Signed-off-by: si458 <simonsmith5521@gmail.com>

si458 committed Apr 6, 2024 at 21:11 UTC f9af1ffc90033b8bbf7e2aed4cc541e18d9b0408
1 file changed +1 -1
views/default-mobile.handlebars
+1 -1
@@ -4005,7 +4005,7 @@
4005 }
4006 x += '<tr style=' + (((count % 2) == 0) ? 'background-color:#DDD' : '') + '><td><div>&nbsp;' + printDate(date) + '<div></div></div></td><td><div>' + datavalue + '</div></td></tr>';
4007 ++count;
4008 - date = new Date(date.getTime() - (1000 * 60 * 60 * 24)); // Substract one day
4008 + date = new Date(date.getFullYear(), date.getMonth(), date.getDate() - 1);
4009 }
4010 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>');
4011 }