From: Matt Johnson Date: Sun, 13 Mar 2016 19:15:55 +0000 (-0700) Subject: Keep in UTC to avoid DST issues X-Git-Tag: 2.13.0~38^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8471736c498d1973ffb885ac33e2dd5de2ad6a84;p=thirdparty%2Fmoment.git Keep in UTC to avoid DST issues --- diff --git a/src/test/helpers/common-locale.js b/src/test/helpers/common-locale.js index 8fe3ced6e..9379a3d78 100644 --- a/src/test/helpers/common-locale.js +++ b/src/test/helpers/common-locale.js @@ -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')); }