Fixing double conversion of time between UTC and local timezone

This commit is contained in:
chamakura
2020-07-04 20:12:34 -07:00
parent 73322c96a6
commit 309a18e9c0
2 changed files with 6 additions and 9 deletions

View File

@@ -468,11 +468,6 @@ Module.register("calendar", {
for (var e in calendar) {
var event = JSON.parse(JSON.stringify(calendar[e])); // clone object
// correct data for the current timezone
var offset = -(new Date().getTimezoneOffset() * 60 * 1000);
event.startDate = event.startDate - offset;
event.endDate = event.endDate - offset;
if (event.endDate < now) {
continue;
}