Fix timestamps for create and update action

The browser strips the timezone indicator to use the datetime picker, so
the server needs to add this back again.
This commit is contained in:
Hornwitser 2025-02-27 22:20:03 +01:00
parent 1217104cd2
commit 7e395c5616

View file

@ -18,8 +18,8 @@ export async function createEvent(formData: FormData) {
slots: [
{
id: `${id}-1`,
start,
end,
start: start + "Z",
end: end + "Z",
locations: [location],
}
]
@ -47,8 +47,8 @@ export async function modifyEvent(formData: FormData) {
slots: [
{
id: `${id}-1`,
start,
end,
start: start + "Z",
end: end + "Z",
locations: [location],
}
]