mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
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.
This commit is contained in:
parent
4b74673795
commit
97c24dbea3
1 changed files with 2 additions and 2 deletions
|
|
@ -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`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue