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

[5.x] Cast entry dates to UTC #398

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

[5.x] Cast entry dates to UTC #398

wants to merge 5 commits into from

Conversation

duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Feb 20, 2025

This pull request ensures that whenever a date is stored or retreived from the date column on the entries table, a UTC Carbon object will be returned.

Without our accessor, whenever the date attribute was accessed, the returned Carbon object would use the application's timezone, not UTC (which is what we want dates to be stored in instead).

Related: statamic/cms#11409

@jasonvarga jasonvarga changed the title Cast entry dates to UTC [5.x] Cast entry dates to UTC Feb 21, 2025
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

Successfully merging this pull request may close these issues.

1 participant