Skip to content
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

Replace strftime with IntlDateFormatter for PHP8.1 #1228

Merged
merged 1 commit into from
Sep 25, 2022
Merged

Conversation

herrvigg
Copy link
Collaborator

strftime is deprecated in PHP8.1 and should not be used anymore. Add a locale-formatted strftime using IntlDateFormatter. This patch is a temporary workaround for immediate PHP8.1 support.

The strftime format should be abandonned completely in QTX so it becomes legacy from now. Mark all strftime methods as deprecated for PHPDoc but not for the PHP code yet, until a migration is done.

Attention: QTX uses an extended version of strftime to support extra format tags such as %q that are non-standard in strftime.

`strftime` is deprecated in PHP8.1 and should not be used anymore.
Add a locale-formatted strftime using `IntlDateFormatter`.
This patch is a temporary workaround for immediate PHP8.1 support.

The `strftime` format should be abandonned completely in QTX so it
becomes legacy from now. Mark all strftime methods as deprecated for
PHPDoc but not for the PHP code yet, until a migration is done.

Attention: QTX uses an extended version of strftime to support extra
format tags such as `%q` that are non-standard in strftime.
@herrvigg herrvigg added the core Core functionalities, including the admin section label Sep 25, 2022
@herrvigg
Copy link
Collaborator Author

Should solve #1085 as a temporary workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core functionalities, including the admin section
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant