From: Will Dembinski Date: Thu, 20 Oct 2016 20:33:04 +0000 (-0700) Subject: Added comment as requested in: https://github.com/moment/moment/pull/3504 X-Git-Tag: 2.19.0~48^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c15d36b05685b969a0cd8da541265b88408b618;p=thirdparty%2Fmoment.git Added comment as requested in: https://github.com/moment/moment/pull/3504 --- diff --git a/src/lib/units/offset.js b/src/lib/units/offset.js index 4591bd25b..bd34130df 100644 --- a/src/lib/units/offset.js +++ b/src/lib/units/offset.js @@ -161,6 +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) { this.utcOffset(this._tzm); } else if (typeof this._i === 'string') {