diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-08-31 21:04:22 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-08-31 21:04:22 -0400 |
commit | 3861e90336031873d7f6dc2f7476b5502af7d69f (patch) | |
tree | 6cfcf590b3dd307e639025e5cd272d57232245ba /app/Model/ProjectModel.php | |
parent | 12acf66ad2a2673dd3201c85d4179b6c46f3c12f (diff) |
Fix wrong project date format (shown as 01/01/1970)
Diffstat (limited to 'app/Model/ProjectModel.php')
-rw-r--r-- | app/Model/ProjectModel.php | 8 |
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']) && |