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

This commit is contained in:
ibuler
2019-07-09 12:05:31 +08:00
parent c0cff6d1fe
commit 05438baad9
2 changed files with 2 additions and 2 deletions

View File

@@ -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) {