mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
fix: 修复Safari时间显示问题
Closes https://github.com/jumpserver/trello/issues/237
This commit is contained in:
@@ -65,12 +65,15 @@ function cleanDateStr(d) {
|
||||
case 1:
|
||||
d = d.split('+')[0].trimRight()
|
||||
break
|
||||
case 2:
|
||||
d = d.replace(/-/g, '/')
|
||||
}
|
||||
}
|
||||
return null
|
||||
return d
|
||||
}
|
||||
|
||||
export function toSafeLocalDateStr(d) {
|
||||
console.log(d)
|
||||
const date = safeDate(d)
|
||||
// let date_s = date.toLocaleString(getUserLang(), {hour12: false});
|
||||
const date_s = date.toLocaleString(getUserLang(), { hourCycle: 'h23' })
|
||||
|
||||
Reference in New Issue
Block a user