-
Notifications
You must be signed in to change notification settings - Fork 719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: Function strftime() is deprecated #780
Comments
confirmed also by using cmsmadesimple/branches/2.4/ PHP 8.1.8 and Smarty 4.2 |
see PR #781 |
Thanks ophian |
Hi, I've given a look to the two files with strftime() in the PR modifier.date_format.php IMHO solution can not be changing calls to strftime() to @strftime(), but code need to be re-written using date() or another valid function that will be OK for PHP 8.1.x regards |
It is total valid to silence deprecation notices up to at least PHP 9, since a valid solution to dateTime does require the intl/icu extension, which isn't the standard nowadays. |
Duplicate of #672 |
I will use @strftime as suggested in smarty - smarty-php/smarty#678 - smarty-php/smarty#780 A good solution using date() probably requires lot of testing.
I use PHP 8.1 and Smarty 4.2.
I got this error:
ERROR: Function strftime() is deprecated on line 81 in file/vendor/smarty/smarty/libs/plugins/modifier.date_format.php.
The text was updated successfully, but these errors were encountered: