mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-27 15:45:53 -05:00
fix daylight savings in powertimeline #5997
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
9081a6aeac
commit
95e7997e60
@ -8566,7 +8566,7 @@
|
|||||||
}
|
}
|
||||||
x += '<tr class=' + (((count % 2) == 0)?'altBack':'') + '><td><div> ' + printDate(date) + '<div></div></div></td><td><div>' + datavalue + '</div></td></tr>';
|
x += '<tr class=' + (((count % 2) == 0)?'altBack':'') + '><td><div> ' + printDate(date) + '<div></div></div></td><td><div>' + datavalue + '</div></td></tr>';
|
||||||
++count;
|
++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.
|
// Add the language and timezone of the browser to the server so the server can localize the time correctly.
|
||||||
var tz = '';
|
var tz = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user