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:
parent
1217104cd2
commit
7e395c5616
1 changed files with 4 additions and 4 deletions
|
@ -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],
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue