Commit 05438baa authored by ibuler's avatar ibuler

[Update] 修改日期显示差8小时

parent c0cff6d1
......@@ -137,7 +137,6 @@ $(document).ready(function () {
protocolRef.val(protocolShould);
protocolRef.trigger("change")
}
})
.on("click", ".btn-protocol.btn-del", function () {
$(this).parent().parent().remove();
......
......@@ -1111,7 +1111,8 @@ function objectAttrsIsBool(obj, attrs) {
function formatDateAsCN(d) {
var date = new Date(d);
return date.toISOString().replace("T", " ").replace(/\..*/, "");
var date_s = date.toLocaleString(navigator.language, {hour12: false});
return date_s.split("/").join('-')
}
function getUrlParams(url) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment