]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Call updateOffset on moment creation
authorelad <elad@iNNU.ORG>
Wed, 29 Oct 2014 15:12:12 +0000 (17:12 +0200)
committerIskren Chernev <iskren.chernev@gmail.com>
Sun, 28 Dec 2014 16:47:10 +0000 (18:47 +0200)
moment.js

index 227bf0aad56eb2bc6a0f003cd0c4d0f0f093d537..3507addac26ac0cb2338a44df75c9e65cfab2df5 100644 (file)
--- a/moment.js
+++ b/moment.js
         }
         copyConfig(this, config);
         this._d = new Date(+config._d);
+        if (moment.updateOffset) {
+            moment.updateOffset(this);
+        }
     }
 
     // Duration Constructor