refactor: remove day from dates
All checks were successful
Deploy Blog / deploy (push) Successful in 1m57s

This commit is contained in:
Thomas Bishop 2025-10-08 18:33:19 +01:00
parent 2ce5898767
commit 899e3d8cb7

View file

@ -25,11 +25,11 @@ const days = [
const convertDate = (isoStamp: string) => {
const unixSeconds = new Date(isoStamp)
const weekday = days[unixSeconds.getDay()]
// const weekday = days[unixSeconds.getDay()]
const day = unixSeconds.getDate()
const month = months[unixSeconds.getMonth()]
const year = unixSeconds.getFullYear()
return `${weekday} ${day} ${month} ${year}`
return `${day} ${month} ${year}`
}
export { convertDate }