Changed TaskValidator to accept all date/time formats for date_started

The TaskValidator did only accept the date/time format defined in the application configuration.
This commit is contained in:
Thomas Andres 2017-03-12 18:03:09 +01:00 committed by GitHub
parent 8f6b3295e8
commit 30cdeaa689
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,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'), array($this->dateParser->getUserDateTimeFormat())),
new Validators\Date('date_started', t('Invalid date'), $this->dateParser->getDateTimeFormats(true)),
new Validators\Numeric('time_spent', t('This value must be numeric')),
new Validators\Numeric('time_estimated', t('This value must be numeric')),
);