Bugfix Datepicker

pull/346/head
OzzieIsaacs 7 years ago
parent f87800d11c
commit bde92113d4

@ -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");
}
}

Loading…
Cancel
Save