We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using the Date field and saving a date far in the past when using the Europe/Amsterdam timezone the date is set 1 day back.
Value stays at 07-01-1881
Value is set to 06-01-1881
When reading the value in twig with {{ item.dateField|date("Y-m-d H:i:s e") }} the displayed value is 1881-01-06 23:57:58 Europe/Amsterdam
{{ item.dateField|date("Y-m-d H:i:s e") }}
1881-01-06 23:57:58 Europe/Amsterdam
5.6.13
8.3.14
Linux 5.15.167.4-microsoft-standard-WSL2
MariaDB 10.6.18
No response
The text was updated successfully, but these errors were encountered:
Hi, thanks for reporting! I raised a PR for this, and it has details on why this is happening.
Sorry, something went wrong.
Thank you!
Craft 4.14.12 and 5.6.14 are out with that fix. Thanks again!
i-just
No branches or pull requests
What happened?
Description
When using the Date field and saving a date far in the past when using the Europe/Amsterdam timezone the date is set 1 day back.
Steps to reproduce
Expected behavior
Value stays at 07-01-1881
Actual behavior
Value is set to 06-01-1881
When reading the value in twig with
{{ item.dateField|date("Y-m-d H:i:s e") }}
the displayed value is1881-01-06 23:57:58 Europe/Amsterdam
Craft CMS version
5.6.13
PHP version
8.3.14
Operating system and version
Linux 5.15.167.4-microsoft-standard-WSL2
Database type and version
MariaDB 10.6.18
Image driver and version
No response
Installed plugins and versions
No response
The text was updated successfully, but these errors were encountered: