#5303 - CPF and catalogue date and date_time fields do not handle time zones properly
0 guests and 0 members have recently viewed this.
The top 3 point earners from 7th Dec 2025 to 14th Dec 2025.
| PDStig |
|
|
|---|---|---|
| Gabri |
|
|
| Master Rat |
|
|
There are no events at this time
The date and date_time fields used in CPFs and in catalogues did not properly handle time zones. This resulted in some weird conversions and changes to the values when going in to edit an entry (or a profile).
This hotfix applies the following changes:
* The date field no longer respects time zones (we can't because dates are always midnight which causes some weird behaviour)
* The date_time field is now the only date-based field that respects time zones; this is indicated when selecting a field type.
* The date_time field will take input in the user's time zone, save as UTC in the database, and render as whichever time zone the viewer is in.