Fix date format

This commit is contained in:
QuickMythril 2025-01-13 23:58:11 -05:00
parent a2fcbefd74
commit 11c7bfede7

View File

@ -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
}