Fix changing task dates

This commit is contained in:
kolaente 2020-06-23 22:41:52 +02:00
parent 155d24da95
commit 58f6762f5c
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -34,9 +34,9 @@ export default class TaskService extends AbstractService {
model.listId = Number(model.listId) model.listId = Number(model.listId)
// Convert dates into an iso string // Convert dates into an iso string
model.dueDate = model.dueDate ? null : formatISO(new Date(model.dueDate)) model.dueDate = !model.dueDate ? null : formatISO(new Date(model.dueDate))
model.startDate = model.startDate ? null : formatISO(new Date(model.startDate)) model.startDate = !model.startDate ? null : formatISO(new Date(model.startDate))
model.endDate = model.endDate ? null : formatISO(new Date(model.endDate)) model.endDate = !model.endDate ? null : formatISO(new Date(model.endDate))
model.created = formatISO(model.created) model.created = formatISO(model.created)
model.updated = formatISO(model.updated) model.updated = formatISO(model.updated)