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)
|
||||
|
||||
// Convert dates into an iso string
|
||||
model.dueDate = model.dueDate ? null : formatISO(new Date(model.dueDate))
|
||||
model.startDate = model.startDate ? null : formatISO(new Date(model.startDate))
|
||||
model.endDate = model.endDate ? null : formatISO(new Date(model.endDate))
|
||||
model.dueDate = !model.dueDate ? null : formatISO(new Date(model.dueDate))
|
||||
model.startDate = !model.startDate ? null : formatISO(new Date(model.startDate))
|
||||
model.endDate = !model.endDate ? null : formatISO(new Date(model.endDate))
|
||||
model.created = formatISO(model.created)
|
||||
model.updated = formatISO(model.updated)
|
||||
|
||||
|
|
Loading…
Reference in a new issue