diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-06-05 22:22:10 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-06-05 22:22:10 -0400 |
commit | 9cb8a1ffc9ed1e74411fe399cfd5dcf59c071293 (patch) | |
tree | edace4de1bf78e715b119d19986fbab592cb191d /app/Core/DateParser.php | |
parent | 656f4306325d7944280ce111d95aeaeacab8d3cd (diff) |
Display local date format in date picker
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 |