Skip to content

Commit

Permalink
fix lint error correction done wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
sdetweil committed Nov 15, 2024
1 parent b8c14d1 commit 9be5535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/default/calendar/calendarfetcherutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ const CalendarFetcherUtils = {
getTimezoneOffsetFromTimezone (timeZone) {
const str = new Date().toLocaleString("en", { timeZone, timeZoneName: "longOffset" });
Log.debug("tz offset=", str);
const [_, h, m] = str.match(/([+-]\d+):(\d+)$/) || ["+00", "00"];
const [_, h, m] = str.match(/([+-]\d+):(\d+)$/) || ["", "+00", "00"];
return h * 60 + (h > 0 ? +m : -m);
},

Expand Down

0 comments on commit 9be5535

Please sign in to comment.