fix: 修改 日期格式

This commit is contained in:
zhangyu
2021-12-31 16:41:30 +08:00
parent fd25007284
commit 45b6e953d2
32 changed files with 209 additions and 202 deletions

View File

@@ -392,7 +392,7 @@ export function calcDurationByStringTimeMs (startTime, endTime) {
return result
}
export function unixTimeParseToString (unixTime, fmt = 'yyyy-MM-dd hh:mm:ss') {
export function unixTimeParseToString (unixTime, fmt = 'YYYY-MM-DD HH:mm:ss') {
const date = new Date(unixTime * 1000)
const o = {
'M+': date.getMonth() + 1, // 月份