-
Notifications
You must be signed in to change notification settings - Fork 88
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
function strftime is deprecated (php 8.1) #784
Comments
Sadly don't have much time these days, but I'd suggest to use a polyfill to make it work again. Adjusting to the immutalbe DateTime Interface for legacy application is a major pain. Example for a polyfill: https://bestofphp.com/repo/alphp-strftime That could be copy+pasted to serendipity_compat.inc.php or something like that, and be a drop-in replacement...? @onli |
Using the polyfill sounds like a good idea to me! |
It seems it's quite a lot of work. There is another format for the date() function, no way to reuse the format strings in all translations without a polyfill. |
Works fine! 💃 |
I think we can almost close this. The polyfill works and is merged. I tested it now under PHP 8.2, 8.1, 8.0 and 7.4 - seemed completely fine. However, on my test server I ran into the issue that PHPs
But we need to add this to the documentation, the installer, and should also mention it in the upgrade notice for the next version. |
With PHP 8.1 I'm getting these warnings in the log:
The use of the strftime function is discouraged and will likely be removed in future PHP versions:
https://www.php.net/strftime
The text was updated successfully, but these errors were encountered: