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.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Core/DateParser.php b/app/Core/DateParser.php
index a7b10a7a..5d770241 100644
--- a/app/Core/DateParser.php
+++ b/app/Core/DateParser.php
@@ -304,6 +304,10 @@ class DateParser extends Base
{
foreach ($fields as $field) {
if (! empty($values[$field])) {
+ if (! ctype_digit($values[$field])) {
+ $values[$field] = strtotime($values[$field]);
+ }
+
$values[$field] = date($format, $values[$field]);
} else {
$values[$field] = '';