We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7ebbc46 + fcd4f6e commit aaa8d55Copy full SHA for aaa8d55
2025/src/components/Schedule/index.ts
@@ -19,7 +19,10 @@ export const getScheduleCardStyle = (title: string) => {
19
};
20
21
export const formatTime = (date: Date): string => {
22
- const hours = date.getHours().toString().padStart(2, "0");
23
- const minutes = date.getMinutes().toString().padStart(2, "0");
24
- return `${hours}:${minutes}`;
+ return new Intl.DateTimeFormat("ja-JP", {
+ timeZone: "Asia/Tokyo",
+ hour: "2-digit",
25
+ minute: "2-digit",
26
+ hour12: false,
27
+ }).format(date);
28
0 commit comments