mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-06 01:40:52 +00:00
[Update] 修改日期显示差8小时
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user