]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Better approach for keeping timezone from @timrwood.
authorelad <elad@iNNU.ORG>
Fri, 31 Oct 2014 06:58:09 +0000 (08:58 +0200)
committerIskren Chernev <iskren.chernev@gmail.com>
Wed, 24 Dec 2014 21:35:13 +0000 (13:35 -0800)
moment.js

index 4cc800b3ad578939d13954cae5d9383917e10427..db733b19a067b7014dbbb6ae38eded13d07acc1d 100644 (file)
--- a/moment.js
+++ b/moment.js
         if (typeof from._locale !== 'undefined') {
             to._locale = from._locale;
         }
-        if (typeof from._zn !== 'undefined') {
-            to._zn = from._zn;
-        }
 
         if (momentProperties.length > 0) {
             for (i in momentProperties) {
             config._i = input = config._locale.preparse(input);
         }
 
-        config._zn = config._zn || moment._zn || null;
-
         if (moment.isMoment(input)) {
             return new Moment(input, true);
         } else if (format) {