diff --git a/frontend/src/lib/utils/date.ts b/frontend/src/lib/utils/date.ts index 7e92b864975aca7f57f92b33edcc3081af4f126e..dfdf53735dcf13981362ee0e000d6a1e3f6a313e 100644 --- a/frontend/src/lib/utils/date.ts +++ b/frontend/src/lib/utils/date.ts @@ -37,7 +37,7 @@ export function displayDate(date: Date): string { const now = new Date(); - const hours = date.getHours().toString().padStart(2, '0'); + const hours = date.getHours().toString(); const minutes = date.getMinutes().toString().padStart(2, '0'); if (now.getDate() === date.getDate()) { @@ -64,7 +64,7 @@ export function displayTime(date: Date): string { const now = new Date(); - const hours = date.getHours().toString().padStart(2, '0'); + const hours = date.getHours().toString(); const minutes = date.getMinutes().toString().padStart(2, '0'); if ( @@ -75,7 +75,7 @@ export function displayTime(date: Date): string { return hours + ':' + minutes; } - const day = date.getDate().toString().padStart(2, '0'); + const day = date.getDate().toString(); const month = getFullMonth(date.getMonth()); if (now.getFullYear() === date.getFullYear()) {