]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Keep in UTC to avoid DST issues
authorMatt Johnson <mj1856@hotmail.com>
Sun, 13 Mar 2016 19:15:55 +0000 (12:15 -0700)
committerIskren Chernev <iskren.chernev@gmail.com>
Thu, 24 Mar 2016 10:54:09 +0000 (03:54 -0700)
src/test/helpers/common-locale.js

index 8fe3ced6e8638a285e5a6a59539a1a42beee9aa5..9379a3d783571f1103f78e9649e44446ff51068d 100644 (file)
@@ -46,7 +46,7 @@ export function defineCommonLocaleTests(locale, options) {
         for (h = 0; h < 24; ++h) {
             for (m = 0; m < 60; m += 15) {
                 t1 = moment.utc([2000, 0, 1, h, m]);
-                t2 = moment(t1.format('A h:mm'), 'A h:mm');
+                t2 = moment.utc(t1.format('A h:mm'), 'A h:mm');
                 assert.equal(t2.format('HH:mm'), t1.format('HH:mm'),
                         'meridiem at ' + t1.format('HH:mm'));
             }