From: Will Dembinski Date: Mon, 31 Oct 2016 16:24:40 +0000 (-0700) Subject: Update for check, X-Git-Tag: 2.19.0~48^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3504%2Fhead;p=thirdparty%2Fmoment.git Update for check, --- 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);