From 97c24dbea3f7bb9c6413255234cfdaa720a0eda4 Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Sun, 19 Oct 2025 17:16:49 -0500 Subject: [PATCH] Bug Fix: Fix inconsistency with how 24 hour time is displayed between frontend and backend. If minutes were > 0 and using 24 hour time, hours 0-9 would show as single digit but if minute was 0 they would show double digit. --- frontend/src/components/forms/DummyEPG.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/forms/DummyEPG.jsx b/frontend/src/components/forms/DummyEPG.jsx index a9608542..a449d0c6 100644 --- a/frontend/src/components/forms/DummyEPG.jsx +++ b/frontend/src/components/forms/DummyEPG.jsx @@ -203,7 +203,7 @@ const DummyEPGForm = ({ epg, isOpen, onClose }) => { // Format 24-hour time string with converted time if (convertedMinute > 0) { - allGroups.time24 = `${hour24}:${convertedMinute.toString().padStart(2, '0')}`; + allGroups.time24 = `${hour24.toString().padStart(2, '0')}:${convertedMinute.toString().padStart(2, '0')}`; } else { allGroups.time24 = `${hour24.toString().padStart(2, '0')}:00`; } @@ -227,7 +227,7 @@ const DummyEPGForm = ({ epg, isOpen, onClose }) => { // No timezone conversion - use original logic // Format 24-hour time string if (minute > 0) { - allGroups.time24 = `${hour24}:${minute.toString().padStart(2, '0')}`; + allGroups.time24 = `${hour24.toString().padStart(2, '0')}:${minute.toString().padStart(2, '0')}`; } else { allGroups.time24 = `${hour24.toString().padStart(2, '0')}:00`; }