mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix a date formatting test failure in list-view-tests
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user