fix daylight savings in powertimeline #5997
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Apr 6, 2024 at 21:09 UTC
95e7997e6075d91698d2d5e1c34e8e7b5cd52634
1 file changed
+1
-1
views/default.handlebars
+1
-1
@@ -8566,7 +8566,7 @@
8566
}
8567
x += '<tr class=' + (((count % 2) == 0)?'altBack':'') + '><td><div> ' + printDate(date) + '<div></div></div></td><td><div>' + datavalue + '</div></td></tr>';
8568
++count;
8569
- date = new Date(date.getTime() - (1000 * 60 * 60 * 24)); // Substract one day
8569
+ date = new Date(date.getFullYear(), date.getMonth(), date.getDate() - 1);
8570
}
8571
// Add the language and timezone of the browser to the server so the server can localize the time correctly.
8572
var tz = '';