From 844a59d880391c4650567b19ef3b678937b92933 Mon Sep 17 00:00:00 2001 From: Sam Detweiler Date: Wed, 28 Oct 2020 13:10:24 -0500 Subject: [PATCH] one more offset only test --- modules/default/calendar/calendarfetcher.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/default/calendar/calendarfetcher.js b/modules/default/calendar/calendarfetcher.js index 7adbb2d0..5d87d7c8 100644 --- a/modules/default/calendar/calendarfetcher.js +++ b/modules/default/calendar/calendarfetcher.js @@ -417,8 +417,8 @@ const CalendarFetcher = function (url, reloadInterval, excludedEvents, maximumEn const regex = /[+|-]\d*:\d*/; mmo = event.start.tz.match(regex).toString(); mms = mmo; - if (debug) Log.log("ical offset=" + mmo); - mm = moment.tz(moment(date)); + if (debug) Log.log("ical offset=" + mmo + " date=" + date); + mm = moment(date); mm = mm.utcOffset(mmo); } else { // get the start time in that timezone