Skip to content

Handle start_timezone and end_timezone during (de)serialization#2018

Open
davisagli wants to merge 5 commits into
mainfrom
event-timezones
Open

Handle start_timezone and end_timezone during (de)serialization#2018
davisagli wants to merge 5 commits into
mainfrom
event-timezones

Conversation

@davisagli
Copy link
Copy Markdown
Member

@davisagli davisagli commented May 29, 2026

Fixes #1878


📚 Documentation preview 📚: https://plonerestapi--2018.org.readthedocs.build/

@davisagli davisagli requested review from stevepiercy and thet May 29, 2026 10:49
@mister-roboto
Copy link
Copy Markdown

@davisagli thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

@read-the-docs-community
Copy link
Copy Markdown

read-the-docs-community Bot commented May 29, 2026

Documentation build overview

📚 plone.restapi | 🛠️ Build #32902646 | 📁 Comparing 563bb02 against latest (7a7f048)

  🔍 Preview build  

1 file changed
± endpoints/content-types.html

@davisagli
Copy link
Copy Markdown
Member Author

@robgietema FYI, we are adding support for serializing and deserializing start_timezone and end_timezone as separate fields on Events.

@davisagli davisagli marked this pull request as ready for review May 29, 2026 11:31
@davisagli
Copy link
Copy Markdown
Member Author

@jenkins-plone-org please run jobs

deserializer.requested_timezone = data["start_timezone"]
elif name == "end" and "end_timezone" in data:
deserializer.requested_timezone = data["end_timezone"]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know that the original issue requests adding timezone serialization for events, but shouldn't we do this for all datetime fields?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't assume that. We've only been thinking about events as we design the solution.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I'll keep this in mind, but first I want to make sure everything works end to end with the frontend widgets.)

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.

De/serialize events with start and end timezones

3 participants