Date parsing and toISOString() can't be assumed to be present. Use Moment instead. Issue #323.

This commit is contained in:
Dan Wilson
2013-05-14 16:30:25 +01:00
parent 325eaf8c34
commit 9514c46aa0
2 changed files with 2 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ test('_parseDate', function () {
];
_.each(testData, function(item) {
var out = view._parseDate(item[0]);
if (out) out = out.toISOString();
if (out) out = moment(out).toJSON();
equal(out, item[1]);
});
});