From 3bd32eef5dcdcbfd82709529ccc88ffa10fe50ff Mon Sep 17 00:00:00 2001 From: Bryan Wain <3982094+bdwain@users.noreply.github.com> Date: Thu, 8 Dec 2022 11:28:38 +0000 Subject: [PATCH] fix undefined timezone error --- src/_lib/tzParseTimezone/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_lib/tzParseTimezone/index.js b/src/_lib/tzParseTimezone/index.js index e1032d4..3ab0ce9 100644 --- a/src/_lib/tzParseTimezone/index.js +++ b/src/_lib/tzParseTimezone/index.js @@ -17,7 +17,7 @@ export default function tzParseTimezone(timezoneString, date, isUtcDate) { var absoluteOffset // Empty string - if (timezoneString === '') { + if (!timezoneString) { return 0 }