Got stream with default file

This commit is contained in:
Pierre Jacquier
2024-02-12 08:32:02 -05:00
parent a769812135
commit 7293e85e31
3 changed files with 15 additions and 27 deletions

View File

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