From 58297ca3b11b9ad526a8ac344e5ac56d9e1b5a13 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 7 Jul 2015 19:15:53 -0400 Subject: Add datetime picker for start date --- app/Model/TaskModification.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/Model/TaskModification.php') diff --git a/app/Model/TaskModification.php b/app/Model/TaskModification.php index 4691ce81..b67106e1 100644 --- a/app/Model/TaskModification.php +++ b/app/Model/TaskModification.php @@ -83,7 +83,8 @@ class TaskModification extends Base */ public function prepare(array &$values) { - $this->dateParser->convert($values, array('date_due', 'date_started')); + $this->dateParser->convert($values, array('date_due')); + $this->dateParser->convert($values, array('date_started'), true); $this->removeFields($values, array('another_task', 'id')); $this->resetFields($values, array('date_due', 'date_started', 'score', 'category_id', 'time_estimated', 'time_spent')); $this->convertIntegerFields($values, array('is_active', 'recurrence_status', 'recurrence_trigger', 'recurrence_factor', 'recurrence_timeframe', 'recurrence_basedate')); -- cgit v1.2.3