Skip to content

Commit

Permalink
Build 2.10.6
Browse files Browse the repository at this point in the history
  • Loading branch information
ichernev committed Jul 28, 2015
1 parent 129494b commit f3fbef9
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
6 changes: 3 additions & 3 deletions min/moment-with-locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
// Moment prototype object
function Moment(config) {
copyConfig(this, config);
this._d = new Date(config._d.getTime());
this._d = new Date(config._d != null ? config._d.getTime() : NaN);
// Prevent infinite loop in case updateOffset creates new moment
// objects.
if (updateInProgress === false) {
Expand Down Expand Up @@ -3158,12 +3158,12 @@
;

//! moment.js
//! version : 2.10.5
//! version : 2.10.6
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com

utils_hooks__hooks.version = '2.10.5';
utils_hooks__hooks.version = '2.10.6';

setHookCallback(local__createLocal);

Expand Down
6 changes: 3 additions & 3 deletions min/moment-with-locales.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions min/moment.min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions min/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -32077,6 +32077,11 @@
assert.ok(moment().toDate() instanceof Date, 'undefined');
});

test('iso with bad input', function (assert) {
assert.ok(!moment('a', moment.ISO_8601).isValid(), 'iso parsing with invalid string');
assert.ok(!moment('a', moment.ISO_8601, true).isValid(), 'iso parsing with invalid string, strict');
});

test('iso format 24hrs', function (assert) {
assert.equal(moment('2014-01-01T24:00:00.000').format('YYYY-MM-DD[T]HH:mm:ss.SSS'),
'2014-01-02T00:00:00.000', 'iso format with 24:00 localtime');
Expand Down
6 changes: 3 additions & 3 deletions moment.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! moment.js
//! version : 2.10.5
//! version : 2.10.6
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
Expand Down Expand Up @@ -175,7 +175,7 @@
// Moment prototype object
function Moment(config) {
copyConfig(this, config);
this._d = new Date(config._d.getTime());
this._d = new Date(config._d != null ? config._d.getTime() : NaN);
// Prevent infinite loop in case updateOffset creates new moment
// objects.
if (updateInProgress === false) {
Expand Down Expand Up @@ -3162,7 +3162,7 @@
// Side effect imports


utils_hooks__hooks.version = '2.10.5';
utils_hooks__hooks.version = '2.10.6';

setHookCallback(local__createLocal);

Expand Down

0 comments on commit f3fbef9

Please sign in to comment.