Django should call time.tzset after setting TZ environment variable.
|Reported by:||Marc Fargas <telenieko@…>||Owned by:||anonymous|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
After reading #2315 I spoted this on python's documentation:
Note: Although in many cases, changing the TZ environment variable may affect the output of functions like localtime without calling tzset, this behavior should not be relied on. The TZ environment variable should contain no whitespace.
So, Django should call tzset after setting the TZ environment variable!
Change History (6)
comment:1 Changed 9 years ago by Simon G. <dev@…>
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted
comment:2 Changed 8 years ago by anonymous
- Owner changed from nobody to anonymous
- Status changed from new to assigned