diff --git a/2025/src/components/Schedule/index.ts b/2025/src/components/Schedule/index.ts index 4ed052d..106af1f 100644 --- a/2025/src/components/Schedule/index.ts +++ b/2025/src/components/Schedule/index.ts @@ -19,7 +19,10 @@ export const getScheduleCardStyle = (title: string) => { }; export const formatTime = (date: Date): string => { - const hours = date.getHours().toString().padStart(2, "0"); - const minutes = date.getMinutes().toString().padStart(2, "0"); - return `${hours}:${minutes}`; + return new Intl.DateTimeFormat("ja-JP", { + timeZone: "Asia/Tokyo", + hour: "2-digit", + minute: "2-digit", + hour12: false, + }).format(date); };