diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-02-29 22:40:26 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-02-29 22:40:26 -0500 |
commit | 6ef83d0e058d653322a8f9eb1131e665fb9b2a70 (patch) | |
tree | 2800a74b20b83db3f89879a82111136051744fe3 /app/Core/DateParser.php | |
parent | fafc272085be0d62acb693b47ae9c86dc1c7a417 (diff) |
Add unit test for transition model
Diffstat (limited to 'app/Core/DateParser.php')
-rw-r--r-- | app/Core/DateParser.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Core/DateParser.php b/app/Core/DateParser.php index 20e79ff9..835eb3e3 100644 --- a/app/Core/DateParser.php +++ b/app/Core/DateParser.php @@ -12,6 +12,9 @@ use DateTime; */ class DateParser extends Base { + const DATE_FORMAT = 'm/d/Y'; + const DATE_TIME_FORMAT = 'm/d/Y H:i'; + /** * List of time formats * @@ -201,7 +204,7 @@ class DateParser extends Base } /** - * Get a timetstamp from an ISO date format + * Get a timestamp from an ISO date format * * @access public * @param string $value |