summaryrefslogtreecommitdiff
path: root/app/Model/TaskModification.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-02-06 18:08:41 -0500
committerFrederic Guillot <fred@kanboard.net>2016-02-06 18:08:41 -0500
commit58cef289674717027b6b470044504a661f3bd9ad (patch)
treebf3be866b414009b60b1e1f16480a84c91da03de /app/Model/TaskModification.php
parentfc785bbbf6cc7db01964ae1d99cd02e85afeedc2 (diff)
The date time format can be chosen in application settings
Diffstat (limited to 'app/Model/TaskModification.php')
-rw-r--r--app/Model/TaskModification.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Model/TaskModification.php b/app/Model/TaskModification.php
index eee7b2e0..8e59b3fe 100644
--- a/app/Model/TaskModification.php
+++ b/app/Model/TaskModification.php
@@ -84,8 +84,9 @@ class TaskModification extends Base
*/
public function prepare(array &$values)
{
- $this->dateParser->convert($values, array('date_due'));
- $this->dateParser->convert($values, array('date_started'), true);
+ $values = $this->dateParser->convert($values, array('date_due'));
+ $values = $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('priority', 'is_active', 'recurrence_status', 'recurrence_trigger', 'recurrence_factor', 'recurrence_timeframe', 'recurrence_basedate'));