Skip to content

Commit 7dd8e11

Browse files
authored
fix null tz before use (#347)
* Update package.json * fix null tz pointer * revert package.json
1 parent c20e9f3 commit 7dd8e11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ical.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ const dateParameter = function (name) {
266266
// Extract just the offset
267267
const regex = /[+|-]\d*:\d*/;
268268
offset = tz.match(regex);
269-
tz = null;
270269
found = offset;
270+
tz = null;
271271
}
272272

273273
// Timezone not confirmed yet

0 commit comments

Comments
 (0)