]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Update for check, 3504/head
authorWill Dembinski <willdembinski@gmail.com>
Mon, 31 Oct 2016 16:24:40 +0000 (09:24 -0700)
committerWill Dembinski <willdembinski@gmail.com>
Mon, 31 Oct 2016 16:24:40 +0000 (09:24 -0700)
src/lib/units/offset.js

index bd34130df64614545b9bf48746e3050c1d997221..95721ff95d60984f63042bedf32de427a97fa235 100644 (file)
@@ -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);