Bugfix Datepicker

This commit is contained in:
OzzieIsaacs 2017-09-16 19:30:49 +02:00
parent f87800d11c
commit bde92113d4

View File

@ -21,10 +21,10 @@ if ($("#description").length) {
var results = /(\d{4})[-\/\\](\d{1,2})[-\/\\](\d{1,2})/.exec(this.value); // YYYY-MM-DD
if (results) {
pubDate = new Date(results[1], parseInt(results[2], 10) - 1, results[3]) || new Date(this.value);
}
$("#fake_pubdate")
.val(pubDate.toLocaleDateString(language))
.removeClass("hidden");
}
}).trigger("change");
}
}