for (i = 0; i < config._f.length; i++) {
currentScore = 0;
tempConfig = copyConfig({}, config);
+ if (config._useUTC != null) {
+ tempConfig._useUTC = config._useUTC;
+ }
tempConfig._pf = defaultParsingFlags();
tempConfig._f = config._f[i];
makeDateFromStringAndFormat(tempConfig);
true,
'string array + isValid');
test.done();
+ },
+
+ 'utc with array of formats' : function (test) {
+ test.equal(moment.utc('2014-01-01', ['YYYY-MM-DD', 'YYYY-MM']).format(),
+ '2014-01-01T00:00:00+00:00',
+ 'moment.utc works with array of formats');
+ test.done();
}
};