Skip to content

Commit

Permalink
Merge pull request #214 from bdwain/fix-undefined-timezone-issue
Browse files Browse the repository at this point in the history
fix undefined timezone error
  • Loading branch information
marnusw authored Jan 24, 2023
2 parents 9fe0964 + 3bd32ee commit 46cbf8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_lib/tzParseTimezone/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function tzParseTimezone(timezoneString, date, isUtcDate) {
var absoluteOffset

// Empty string
if (timezoneString === '') {
if (!timezoneString) {
return 0
}

Expand Down

0 comments on commit 46cbf8e

Please sign in to comment.