Fix changing task dates
This commit is contained in:
parent
155d24da95
commit
58f6762f5c
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue