Temporary fix strftime deprecation notes up from PHP 8.1+

Convert to DateTime Interface with intl before PHP 9.
This commit is contained in:
Ian
2022-08-08 18:09:33 +02:00
parent 292ad986cd
commit fc06d246bf

View File

@@ -79,7 +79,7 @@ function smarty_modifier_date_format($string, $format = null, $default_date = ''
}
$format = str_replace($_win_from, $_win_to, $format);
}
return strftime($format, $timestamp);
return @strftime($format, $timestamp);
} else {
return date($format, $timestamp);
}