-
Notifications
You must be signed in to change notification settings - Fork 446
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
Custom date format not respecting parameters (PHP8.1) #1273
Comments
Sadly, there's no replacement for the parameters of |
We should stick to whatever the norm is now. In the end one can always write a small wrapper function to customize a date output. |
I have a calendar that should get its title from the selected month, which used to work in older versions of PHP, unfortunately strftime is deprecated and the replacement in F3 does not really work with custom parameters.
{{ Base::instance()->format('{0,date,custom,%B %Y}', @Date) }}
{{ Base::instance()->format('{0,date,custom,MMMM YYYY}', @Date) }}
with @Date being a timestamp, will return 1. August 2023, although it should return August 2023.
If I read the code correctly, the date portion does not accept custom parameters when in the php8.1 branch.
base.php@line1068
The text was updated successfully, but these errors were encountered: