]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Added comment as requested in: https://github.com/moment/moment/pull/3504
authorWill Dembinski <willdembinski@gmail.com>
Thu, 20 Oct 2016 20:33:04 +0000 (13:33 -0700)
committerWill Dembinski <willdembinski@gmail.com>
Thu, 20 Oct 2016 20:33:04 +0000 (13:33 -0700)
src/lib/units/offset.js

index 4591bd25b45a12d734c170e70bcb22e7e39f8d15..bd34130df64614545b9bf48746e3050c1d997221 100644 (file)
@@ -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') {