[PR #6662] 6661: Improve timezone handling documentation #10094

Closed
opened 2026-01-22 16:06:24 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/6662

State: closed
Merged: No


This commit alters the page to better handle datetimes with timezones. The result will store the datetime with the local date as datetime-value and the timezone as string-value. That way the database-specific ways of doing datetime arithmentics with timezones (see examples for MySQL and Postgres) are still possible, the datetime will not be prone to errors due to timezone-changes between creation and the actual datetime and still the application will be able to use a generic datetime-object that can then be converted to a local timezone of the current user.

**Original Pull Request:** https://github.com/doctrine/orm/pull/6662 **State:** closed **Merged:** No --- This commit alters the page to better handle datetimes with timezones. The result will store the datetime with the local date as datetime-value and the timezone as string-value. That way the database-specific ways of doing datetime arithmentics with timezones (see examples for [MySQL](https://andreas.heigl.org/2016/04/18/timezones-and-mysql/) and [Postgres](https://andreas.heigl.org/2016/05/29/timezones-and-postgresql/)) are still possible, the datetime will not be prone to errors due to timezone-changes between creation and the actual datetime and still the application will be able to use a generic datetime-object that can then be converted to a local timezone of the current user.
admin added the pull-request label 2026-01-22 16:06:24 +01:00
admin closed this issue 2026-01-22 16:06:24 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#10094