mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Merge pull request #3824 from modoboa/fix/calendar-utc-datetimes
Send UTC datetimes when creating/updating events in Calendar
This commit is contained in:
@@ -177,6 +177,10 @@ async function saveEvent() {
|
||||
working.value = true
|
||||
try {
|
||||
var data = JSON.parse(JSON.stringify(form.value))
|
||||
const fromDate = new Date(data.start)
|
||||
data.start = fromDate.toISOString()
|
||||
const toDate = new Date(data.end)
|
||||
data.end = toDate.toISOString()
|
||||
if (!props.event) {
|
||||
await api.createUserEvent(form.value.calendar, data)
|
||||
busStore.displayNotification({ msg: $gettext('Event added') })
|
||||
|
||||
Reference in New Issue
Block a user