From e95ce5252c689bc44b8fbf8dc403305cbe752aac Mon Sep 17 00:00:00 2001 From: Will Dembinski Date: Mon, 31 Oct 2016 09:24:40 -0700 Subject: [PATCH] Update for check, --- src/lib/units/offset.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/units/offset.js b/src/lib/units/offset.js index bd34130df..95721ff95 100644 --- a/src/lib/units/offset.js +++ b/src/lib/units/offset.js @@ -161,8 +161,7 @@ export function setOffsetToLocal (keepLocalTime) { } export function setOffsetToParsedOffset () { - //`this._tzm` can be a modifier of 0, otherwise check if its a truthy value - if (this._tzm === 0 || this._tzm) { + if (this._tzm != null) { this.utcOffset(this._tzm); } else if (typeof this._i === 'string') { var tZone = offsetFromString(matchOffset, this._i); -- 2.47.2