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

@@ -13,7 +13,6 @@ use DateTime;
class DateParser extends Base
{
const DATE_FORMAT = 'm/d/Y';
const DATE_TIME_FORMAT = 'm/d/Y H:i';
const TIME_FORMAT = 'H:i';
/**
@@ -35,7 +34,7 @@ class DateParser extends Base
*/
public function getUserDateTimeFormat()
{
return $this->configModel->get('application_datetime_format', DateParser::DATE_TIME_FORMAT);
return $this->getUserDateFormat().' '.$this->getUserTimeFormat();
}
/**