summaryrefslogtreecommitdiff
path: root/app/Core/DateParser.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/DateParser.php')
-rw-r--r--app/Core/DateParser.php5
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