summaryrefslogtreecommitdiff
path: root/app/Validator/TaskValidator.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-01-24 20:04:58 -0500
committerFrederic Guillot <fred@kanboard.net>2017-01-24 20:04:58 -0500
commitd81fb20df66fd77e41f0f7d573e60b856b1e9f8a (patch)
treeea65bb3339714e5cfac6e5d781901375d1c1851a /app/Validator/TaskValidator.php
parentb23613bbe369011256de8a558707ab9096074e9e (diff)
Fix wrong datetime formatting when task form shows validation errors
Diffstat (limited to 'app/Validator/TaskValidator.php')
-rw-r--r--app/Validator/TaskValidator.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Validator/TaskValidator.php b/app/Validator/TaskValidator.php
index e3b0eded..e824dc05 100644
--- a/app/Validator/TaskValidator.php
+++ b/app/Validator/TaskValidator.php
@@ -42,7 +42,7 @@ class TaskValidator extends BaseValidator
new Validators\MaxLength('title', t('The maximum length is %d characters', 200), 200),
new Validators\MaxLength('reference', t('The maximum length is %d characters', 50), 50),
new Validators\Date('date_due', t('Invalid date'), $this->dateParser->getParserFormats()),
- new Validators\Date('date_started', t('Invalid date'), $this->dateParser->getParserFormats()),
+ new Validators\Date('date_started', t('Invalid date'), array($this->dateParser->getUserDateTimeFormat())),
new Validators\Numeric('time_spent', t('This value must be numeric')),
new Validators\Numeric('time_estimated', t('This value must be numeric')),
);