From 94747a9508f6b08cc10375228f1052fa48baf62e Mon Sep 17 00:00:00 2001 From: mARTin Date: Thu, 26 Mar 2026 10:59:36 +0100 Subject: [PATCH] fix: display midnight hour as "00" instead of "0" in time grid v1.75.4 Co-Authored-By: Claude Opus 4.6 --- package.json | 2 +- src/components/WeeklyView.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d455137..71a89ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "my-weekly-todo-list", - "version": "1.75.3", + "version": "1.75.4", "description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view", "main": "index.js", "scripts": { diff --git a/src/components/WeeklyView.tsx b/src/components/WeeklyView.tsx index d44067c..f23cd23 100644 --- a/src/components/WeeklyView.tsx +++ b/src/components/WeeklyView.tsx @@ -1440,7 +1440,7 @@ function formatHour(hour: number, minutes: number = 0, format: "short" | "full" } // 24h format if (format === "short" && minutes === 0) { - return `${hour}`; + return hour === 0 ? "00" : `${hour}`; } return `${hour.toString().padStart(2, "0")}:${minutes.toString().padStart(2, "0")}`; }