summaryrefslogtreecommitdiff
path: root/app/Controller/Task.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-02-29 22:40:26 -0500
committerFrederic Guillot <fred@kanboard.net>2016-02-29 22:40:26 -0500
commit6ef83d0e058d653322a8f9eb1131e665fb9b2a70 (patch)
tree2800a74b20b83db3f89879a82111136051744fe3 /app/Controller/Task.php
parentfafc272085be0d62acb693b47ae9c86dc1c7a417 (diff)
Add unit test for transition model
Diffstat (limited to 'app/Controller/Task.php')
-rw-r--r--app/Controller/Task.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Controller/Task.php b/app/Controller/Task.php
index 539d377b..5f35be55 100644
--- a/app/Controller/Task.php
+++ b/app/Controller/Task.php
@@ -2,6 +2,8 @@
namespace Kanboard\Controller;
+use Kanboard\Core\DateParser;
+
/**
* Task controller
*
@@ -62,7 +64,7 @@ class Task extends Base
'time_spent' => $task['time_spent'] ?: '',
);
- $values = $this->dateParser->format($values, array('date_started'), $this->config->get('application_datetime_format', 'm/d/Y H:i'));
+ $values = $this->dateParser->format($values, array('date_started'), $this->config->get('application_datetime_format', DateParser::DATE_TIME_FORMAT));
$this->response->html($this->helper->layout->task('task/show', array(
'project' => $this->project->getById($task['project_id']),