summaryrefslogtreecommitdiff
path: root/app/Controller/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/Controller/Taskmodification.php
parentfc785bbbf6cc7db01964ae1d99cd02e85afeedc2 (diff)
The date time format can be chosen in application settings
Diffstat (limited to 'app/Controller/Taskmodification.php')
-rw-r--r--app/Controller/Taskmodification.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/Controller/Taskmodification.php b/app/Controller/Taskmodification.php
index 54b4b23a..a321322d 100644
--- a/app/Controller/Taskmodification.php
+++ b/app/Controller/Taskmodification.php
@@ -82,8 +82,8 @@ class Taskmodification extends Base
$values = $this->hook->merge('controller:task:form:default', $values, array('default_values' => $values));
}
- $this->dateParser->format($values, array('date_due'));
- $this->dateParser->format($values, array('date_started'), 'Y-m-d H:i');
+ $values = $this->dateParser->format($values, array('date_due'), $this->config->get('application_date_format', 'm/d/Y'));
+ $values = $this->dateParser->format($values, array('date_started'), $this->config->get('application_datetime_format', 'm/d/Y H:i'));
$this->response->html($this->helper->layout->task('task_modification/edit_task', array(
'project' => $project,
@@ -93,8 +93,6 @@ class Taskmodification extends Base
'users_list' => $this->projectUserRole->getAssignableUsersList($task['project_id']),
'colors_list' => $this->color->getList(),
'categories_list' => $this->category->getList($task['project_id']),
- 'date_format' => $this->config->get('application_date_format'),
- 'date_formats' => $this->dateParser->getAvailableFormats(),
)));
}