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

strftime deprecated in php 8 #18

Open
Hacky-The-Sheep opened this issue Nov 29, 2021 · 1 comment
Open

strftime deprecated in php 8 #18

Hacky-The-Sheep opened this issue Nov 29, 2021 · 1 comment

Comments

@Hacky-The-Sheep
Copy link

Hacky-The-Sheep commented Nov 29, 2021

[email protected] shows the function strftime() is deprecated. When attempting to generate, causes errors.

Will look into the simplest way to ensure future compatibility.

Screen Shot 2021-11-29 at 4 16 48 PM

Screen Shot 2021-11-29 at 4 16 34 PM

@klimeryk
Copy link
Owner

Thanks for the heads-up - looks like IntlDateFormatter::format is the recommended new way. Would you be interested in submitting a PR to use it instead of strftime? 🙏

I used strftime originally because DateTime::format is not locale-dependent. But I did not notice there's IntlDateFormatter instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants