fix daylight savings in powertimeline #5997

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458 2024-04-06 21:09:43 +01:00
parent 9081a6aeac
commit 95e7997e60

View File

@ -8566,7 +8566,7 @@
}
x += '<tr class=' + (((count % 2) == 0)?'altBack':'') + '><td><div>&nbsp;' + 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);
}
// Add the language and timezone of the browser to the server so the server can localize the time correctly.
var tz = '';