diff options
Diffstat (limited to 'app/Core/DateParser.php')
-rw-r--r-- | app/Core/DateParser.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/Core/DateParser.php b/app/Core/DateParser.php index bdab7998..a7b10a7a 100644 --- a/app/Core/DateParser.php +++ b/app/Core/DateParser.php @@ -14,6 +14,7 @@ class DateParser extends Base { const DATE_FORMAT = 'm/d/Y'; const DATE_TIME_FORMAT = 'm/d/Y H:i'; + const TIME_FORMAT = 'H:i'; /** * Get date format from settings @@ -38,6 +39,17 @@ class DateParser extends Base } /** + * Get time format from settings + * + * @access public + * @return string + */ + public function getUserTimeFormat() + { + return $this->configModel->get('application_time_format', DateParser::TIME_FORMAT); + } + + /** * List of time formats * * @access public |