]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fix parseZone, redo #3504 3581/head
authorIskren Chernev <iskren.chernev@gmail.com>
Tue, 8 Nov 2016 05:08:49 +0000 (21:08 -0800)
committerIskren Chernev <iskren.chernev@gmail.com>
Tue, 8 Nov 2016 05:10:37 +0000 (21:10 -0800)
src/lib/units/offset.js

index f81b096b638b8d33cbdf35d65574364b4a33692a..168aeadd808610444d6d4aa1437fd40aa9252ec0 100644 (file)
@@ -171,7 +171,7 @@ export function setOffsetToLocal (keepLocalTime) {
 }
 
 export function setOffsetToParsedOffset () {
-    if (this._tzm) {
+    if (this._tzm != null) {
         this.utcOffset(this._tzm);
     } else if (typeof this._i === 'string') {
         var tZone = offsetFromString(matchOffset, this._i);