-
Notifications
You must be signed in to change notification settings - Fork 19
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
strftime and gmstrftime depreciated as of PHP 8.1 - Need to find a replacement #1110
Comments
Basically, IntlDateFormatter::format () can output in four formats:
We cannot get, for example, only the day or the month name using this function. We have full month names in $LANG_MONTH and full day names in $LANG_WEEK. How about adding $LANG_MONTH_SHORT (e.g. 'Jan'..'Dec') and $LANG_WEEK_SHORT (e.g. 'Mon'..'Sat') and using date() function? |
OK, I replaced strftime() with COM_strftime() and gmstrftime() with COM_gmstrftime(), using date() and items from language files. |
Finished with Geeklog core, core plugins, messenger, and ban. |
Done with mediagallery |
That was a lot of work for you. I will update the forum to use your new functions. |
Forum now done. Also updated the GeSHI library to the latest version which had other PHP fixes as well |
Geeklog and many plugins including but not necessarily limited to:
use strftime all over the place (and in some places gmstrftime)
We will need to switch in a replacement as these functions have been depreciated as of 8.1 and will be removed by PHP 9:
https://php.watch/versions/8.1/strftime-gmstrftime-deprecated#replacements
Some Geeklog vendor libraries like Oauth also use it.
Replacement or work around needs to work with PHP 5.6
The text was updated successfully, but these errors were encountered: