最新修改
This commit is contained in:
@@ -19,7 +19,7 @@ export function formatDate(time) {
|
||||
|
||||
const timestamp = Number(time)
|
||||
if (!isNaN(timestamp) && timestamp > 0) {
|
||||
const date = new Date(timestamp * 1000)
|
||||
const date = new Date(timestamp > 9999999999 ? timestamp : timestamp * 1000)
|
||||
if (!isNaN(date.getTime())) {
|
||||
const y = date.getFullYear()
|
||||
const m = (date.getMonth() + 1).toString().padStart(2, '0')
|
||||
|
||||
Reference in New Issue
Block a user