12204 Nettoyage de commentaires

This commit is contained in:
Fred Tempez 2023-02-10 14:15:28 +01:00
parent c8a546f6e9
commit cece24b60a

View File

@ -53,10 +53,6 @@ class helper
public static function dateUTF8($format, $date) public static function dateUTF8($format, $date)
{ {
require_once 'core/class/strftime/php-8.1-strftime.class.php'; require_once 'core/class/strftime/php-8.1-strftime.class.php';
/*return mb_detect_encoding(\PHP81_BC\strftime($format, $date), 'UTF-8', true)
? \PHP81_BC\strftime($format, $date)
: utf8_encode(\PHP81_BC\strftime($format, $date));
*/
return mb_convert_encoding(\PHP81_BC\strftime($format, $date), 'UTF-8', mb_list_encodings()); return mb_convert_encoding(\PHP81_BC\strftime($format, $date), 'UTF-8', mb_list_encodings());
} }