fix: format event times to HH:mm on update

This commit is contained in:
Shariq Ansari 2025-09-05 11:47:34 +05:30
parent 46a7a9c495
commit a45c150a3d

View File

@ -242,6 +242,9 @@ function createEvent(_event) {
async function updateEvent(_event, afterDrag = false) {
if (!_event.id) return
_event.fromTime = dayjs(_event.fromTime, 'HH:mm').format('HH:mm')
_event.toTime = dayjs(_event.toTime, 'HH:mm').format('HH:mm')
if (
['duplicate', 'new'].includes(mode.value) &&
!['duplicate-event', 'new-event'].includes(_event.id) &&