Show level, adjustment / penalty, user vote & sort by name, newest comments, least or most votes on minter & admin cards, & fix forum date / time format #3
@ -47,12 +47,12 @@ const timestampToHumanReadableDate = async(timestamp) => {
|
|||||||
const date = new Date(timestamp)
|
const date = new Date(timestamp)
|
||||||
const day = date.getDate()
|
const day = date.getDate()
|
||||||
const month = date.getMonth() + 1
|
const month = date.getMonth() + 1
|
||||||
const year = date.getFullYear() - 2000
|
const year = date.getFullYear()
|
||||||
const hours = date.getHours()
|
const hours = date.getHours()
|
||||||
const minutes = date.getMinutes()
|
const minutes = date.getMinutes()
|
||||||
const seconds = date.getSeconds()
|
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)
|
console.log('Formatted date:', formattedDate)
|
||||||
return formattedDate
|
return formattedDate
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user