summaryrefslogtreecommitdiff
path: root/app/Model
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model')
-rw-r--r--app/Model/ProjectModel.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/Model/ProjectModel.php b/app/Model/ProjectModel.php
index d2019b72..aba5eee2 100644
--- a/app/Model/ProjectModel.php
+++ b/app/Model/ProjectModel.php
@@ -419,6 +419,14 @@ class ProjectModel extends Base
$values['identifier'] = strtoupper($values['identifier']);
}
+ if (! empty($values['start_date'])) {
+ $values['start_date'] = $this->dateParser->getIsoDate($values['start_date']);
+ }
+
+ if (! empty($values['end_date'])) {
+ $values['end_date'] = $this->dateParser->getIsoDate($values['end_date']);
+ }
+
$this->helper->model->convertIntegerFields($values, array('priority_default', 'priority_start', 'priority_end'));
return $this->exists($values['id']) &&