This commit is contained in:
Pierre Jacquier
2024-02-12 20:08:13 -05:00
parent 7293e85e31
commit a91a4fcfe2
3 changed files with 10 additions and 9 deletions

View File

@ -42,7 +42,7 @@ function ProjectCard({
const startOfToday = new Date()
startOfToday.setHours(0, 0, 0, 0)
// TODO: fix time
return ""
return ''
return date.getTime() < startOfToday.getTime()
? date.toLocaleDateString()
: date.toLocaleTimeString()