Skip to content

Commit

Permalink
Better approach for keeping timezone from @timrwood.
Browse files Browse the repository at this point in the history
  • Loading branch information
elad authored and ichernev committed Dec 24, 2014
1 parent e695ead commit 94ec677
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions moment.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,6 @@
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) {
Expand Down Expand Up @@ -1796,8 +1793,6 @@
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) {
Expand Down

0 comments on commit 94ec677

Please sign in to comment.