From: elad Date: Wed, 29 Oct 2014 15:12:12 +0000 (+0200) Subject: Call updateOffset on moment creation X-Git-Tag: 2.9.0~12^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1e8a02e508b427a9e8eb0178ffffd5f3cbad54c;p=thirdparty%2Fmoment.git Call updateOffset on moment creation --- diff --git a/moment.js b/moment.js index 227bf0aad..3507addac 100644 --- a/moment.js +++ b/moment.js @@ -404,6 +404,9 @@ } copyConfig(this, config); this._d = new Date(+config._d); + if (moment.updateOffset) { + moment.updateOffset(this); + } } // Duration Constructor