Simplify date and time configuration to avoid potential validation issues

This commit is contained in:
Frederic Guillot
2017-01-24 20:16:43 -05:00
parent d81fb20df6
commit 81d14efbd1
6 changed files with 6 additions and 9 deletions

View File

@@ -54,7 +54,7 @@ class DateHelper extends Base
*/
public function datetime($value)
{
return date($this->configModel->get('application_datetime_format', 'm/d/Y H:i'), $value);
return date($this->dateParser->getUserDateTimeFormat(), $value);
}
/**