I am brand new to AbanteCart cart. everything seems towork except when I try to add a new product it comes up with Fatal error saying there issomething wrong with my utils.php file online 302.
Here is what my utils.php file shows around that line. Line 302 is the one that reads:
$iso_date = DateTime::createFromFormat($date_format, $string_date, $timezone);
Here is the whole section:
function dateFromFormat($string_date, $date_format, $timezone = null) {
$date = new DateTime();
$timezone = is_null($timezone) ? $date->getTimezone() : $timezone;
if (empty($date_format)) return null;
$string_date = empty($string_date) ? date($date_format) : $string_date;
$iso_date = DateTime::createFromFormat($date_format, $string_date, $timezone);
$result = $iso_date ? $iso_date->getTimestamp() : null;
return $result;