Admin Now and Today buttons use confusing time / timezone
|Reported by:||imfletcher||Owned by:||Aymeric Augustin|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The Django Admin has the default Today and Now buttons for datetime fields.
These seem to use the local time, but store it as UTC in the db without converting it. Meaning, if its 10PM local time, the Now button will populate with 22:00 but will store as 22:00 +0:00:00. This is confusing as it makes it very hard to understand what is going on.
It would be better if the buttons used UTC's current date/time and stored as such, or use the default timezone and store the appropriate offset.
PS sorry if dupe, i tried searching but admin, today, and now are hard terms to search on.
Change History (22)
comment:9 Changed 4 years ago by
|Patch needs improvement:||set|
comment:10 Changed 4 years ago by
|Owner:||changed from nobody to Aymeric Augustin|
|Status:||new → assigned|