diff --git a/app/Helpers/Helper.php b/app/Helpers/Helper.php index ea6ac63e05..4fdd213857 100644 --- a/app/Helpers/Helper.php +++ b/app/Helpers/Helper.php @@ -850,6 +850,7 @@ class Helper * @param $array * @return array|string|null */ + public static function getFormattedDateObject($date, $type = 'datetime', $array = true) { if ($date == '') { @@ -869,7 +870,7 @@ class Helper * database before then - or if they manually edited the field's value - it will crash. * */ -= + try { $tmp_date = new \Carbon($date);