fix: format event times to HH:mm on update
This commit is contained in:
parent
46a7a9c495
commit
a45c150a3d
@ -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) &&
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user