fix:【站内信】

This commit is contained in:
zpaeng
2025-08-22 11:15:45 +08:00
parent 84ab87878a
commit a74cb0c272
5 changed files with 301 additions and 215 deletions

View File

@@ -1,12 +0,0 @@
export function formatMessageTime(input) {
const date = new Date(input)
if (Number.isNaN(date.getTime())) return ''
const year = date.getFullYear()
const month = (date.getMonth() + 1).toString().padStart(2, '0')
const day = date.getDate().toString().padStart(2, '0')
const hours = date.getHours().toString().padStart(2, '0')
const minutes = date.getMinutes().toString().padStart(2, '0')
return `${year}-${month}-${day} ${hours}:${minutes}`
}