fix date format
This commit is contained in:
parent
6af02b9612
commit
f4d35c6991
@ -53,7 +53,7 @@ const timestampToHumanReadableDate = async(timestamp) => {
|
|||||||
const minutes = String(date.getMinutes()).padStart(2, '0');
|
const minutes = String(date.getMinutes()).padStart(2, '0');
|
||||||
const seconds = String(date.getSeconds()).padStart(2, '0');
|
const seconds = String(date.getSeconds()).padStart(2, '0');
|
||||||
|
|
||||||
const formattedDate = `${day}.${month}.${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