aVadim483 / fast-excel-reader

Lightwight and very fast XLSX Excel Spreadsheet Reader in PHP
MIT License
63 stars 16 forks source link

Deprecated php8.1 function call #15

Closed gearoidc closed 11 months ago

gearoidc commented 11 months ago

Function strftime() is deprecatedPHP message: [/var/www/vhosts/biome/vendor/avadim/fast-excel-reader/src/FastExcelReader/Excel.php:124

Changing strftime to date fixes the issue

aVadim483 commented 11 months ago

This is strange because in PHP 8.1 the IntlDateFormatter class must be defined, and if it is defined, then the strftime() function is not used

aVadim483 commented 11 months ago

I think your PHP extension intl is not allowed The problem is that the date() function does not always give the desired result

aVadim483 commented 11 months ago

in v.2.14 strftime() is no longer used and ext-intl required for IntlDateFormatter