Fix date format
This commit is contained in:
parent
a2fcbefd74
commit
11c7bfede7
@ -47,12 +47,12 @@ const timestampToHumanReadableDate = async(timestamp) => {
|
||||
const date = new Date(timestamp)
|
||||
const day = date.getDate()
|
||||
const month = date.getMonth() + 1
|
||||
const year = date.getFullYear() - 2000
|
||||
const year = date.getFullYear()
|
||||
const hours = date.getHours()
|
||||
const minutes = date.getMinutes()
|
||||
const seconds = date.getSeconds()
|
||||
|
||||
const formattedDate = `${month}.${day}.${year}@${hours}:${minutes}:${seconds}`
|
||||
const formattedDate = `${year}.${month}.${day}@${hours}:${minutes}:${seconds}`
|
||||
console.log('Formatted date:', formattedDate)
|
||||
return formattedDate
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user