]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
does build server use UTC time?
authorAaron Ogata <atogata@notebowl.com>
Sun, 22 Nov 2015 23:16:04 +0000 (16:16 -0700)
committerIskren Chernev <iskren.chernev@gmail.com>
Wed, 9 Dec 2015 08:13:12 +0000 (00:13 -0800)
src/test/moment/now.js

index d65a5ca17793826c21f1de1703f0f572947f2dc4..6b94170b33eba4f82f7f96e9ad361abab687a970 100644 (file)
@@ -23,7 +23,7 @@ test('now - custom value', function (assert) {
 
     try {
         assert.ok(moment().toISOString() === CUSTOM_DATE, 'moment() constructor should use the function defined by moment.now, but it did not');
-        assert.ok(moment([]).toISOString() === '2014-12-31T07:00:00.000Z', 'moment() constructor should fall back to the date defined by moment.now when an empty array is given, but it did not');
+        assert.ok(moment([]).toISOString() === '2015-01-01T00:00:00.000Z', 'moment() constructor should fall back to the date defined by moment.now when an empty array is given, but it did not');
         assert.ok(moment.utc([]).toISOString() === '2015-01-01T00:00:00.000Z', 'moment() constructor should fall back to the date defined by moment.now when an empty array is given, but it did not');
     } finally {
         moment.fn.now = oldFn;