Fix a date formatting test failure in list-view-tests

This commit is contained in:
Hristo Deshev
2015-08-07 13:22:43 +03:00
parent a526e6cec8
commit 6f43077830

View File

@@ -465,7 +465,7 @@ export function test_usingAppLevelConvertersInListViewItems() {
var dateConverter = function (value, format) {
var result = format;
var day = value.getDate();
result = result.replace("DD", month < 10 ? "0" + day : day);
result = result.replace("DD", day < 10 ? "0" + day : day);
var month = value.getMonth() + 1;
result = result.replace("MM", month < 10 ? "0" + month : month);
result = result.replace("YYYY", value.getFullYear());