plone / plone.app.event

Event content type for Plone
https://pypi.python.org/pypi/plone.app.event
Other
17 stars 37 forks source link

Store UTC datetimes #290

Open thet opened 6 years ago

thet commented 6 years ago

At the Bonn sprint we discussed options on fixing issues with plone.restapi and plone.app.event regarding timezone handling and storing date/time values converted to UTC in general.

Refer to this discussTion: https://github.com/plone/plone.restapi/pull/493

Note:

We changed that due to bad developer experience caused by the data_postprocessing step.

Currently we store timezone-aware Python datetimes with the portal's default timezone.

Also note that correct timezone information is only needed for recurring events. For recurring events it’s mostly necessary to repeat on the same time of the day, even after DST (Daylight Saving Time) changes. For correct calculations the timezone information is necessary. For other use cases it’s normally enought to display the date/time in the users timezone (can be retrieved via browser request headers).

We want to get back to UTC converted values because:

We propose these changes in plone.app.event:

Additionally we need to fix effective and expiration dates to be also stored in UTC and converted from the user's timezone. This is not done yet - they are stored in UTC only and do not respect the portal's timezone setting. They take the user's input as if it were set in UTC.

This would be a major change for plone.app.event 4.0.

/cc @tisto @buchi @csenger @sneridagh @erral

tisto commented 4 years ago

@thet is that something that we should consider to implement in Plone 6?

tkimnguyen commented 4 years ago

We have a client who is running into events not being displayed with the correct times (or dates) because of time zone issues, so I'd rather something changed before Plone 6...