moment-timezone
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -0,1 +1,4 @@ | ||
### `0.2.1` _2014-08-02_ | ||
* Fixed support for `moment@2.8.1+`. | ||
### `0.2.0` _2014-07-21_ | ||
@@ -47,2 +50,2 @@ * Added the ability to configure whether ambiguous or invalid input is rolled forward or backward. [#101](https://github.com/moment/moment-timezone/pull/101) | ||
### `0.0.1` _2013-07-17_ | ||
* Initial version. | ||
* Initial version. |
//! moment-timezone-utils.js | ||
//! version : 0.2.0 | ||
//! version : 0.2.1 | ||
//! author : Tim Wood | ||
@@ -4,0 +4,0 @@ //! license : MIT |
//! moment-timezone.js | ||
//! version : 0.2.0 | ||
//! version : 0.2.1 | ||
//! author : Tim Wood | ||
@@ -24,3 +24,3 @@ //! license : MIT | ||
var VERSION = "0.2.0", | ||
var VERSION = "0.2.1", | ||
zones = {}, | ||
@@ -306,3 +306,3 @@ links = {}; | ||
if (zone && needsOffset(out)) { | ||
out.add('minutes', zone.parse(out)); | ||
out.add(zone.parse(out), 'minutes'); | ||
} | ||
@@ -374,3 +374,3 @@ | ||
this._z = null; | ||
return old.call(this); | ||
return old.apply(this, arguments); | ||
}; | ||
@@ -384,3 +384,11 @@ } | ||
// Cloning a moment should include the _z property. | ||
moment.momentProperties._z = null; | ||
var momentProperties = moment.momentProperties; | ||
if (Object.prototype.toString.call(momentProperties) === '[object Array]') { | ||
// moment 2.8.1+ | ||
momentProperties.push('_z'); | ||
momentProperties.push('_a'); | ||
} else { | ||
// moment 2.7.0 | ||
momentProperties._z = null; | ||
} | ||
@@ -387,0 +395,0 @@ // INJECT DATA |
{ | ||
"name": "moment-timezone", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Parse and display moments in any timezone.", | ||
@@ -5,0 +5,0 @@ "homepage": "http://momentjs.com/timezone/", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2336681
127697