diff options
Diffstat (limited to 'app/Core/DateParser.php')
-rw-r--r-- | app/Core/DateParser.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/Core/DateParser.php b/app/Core/DateParser.php index b9aa9230..5d3be644 100644 --- a/app/Core/DateParser.php +++ b/app/Core/DateParser.php @@ -292,11 +292,9 @@ class DateParser extends Base { foreach ($fields as $field) { if (! empty($values[$field])) { - if (! ctype_digit($values[$field])) { - $values[$field] = strtotime($values[$field]); + if (ctype_digit($values[$field])) { + $values[$field] = date($format, $values[$field]); } - - $values[$field] = date($format, $values[$field]); } else { $values[$field] = ''; } |