Opened 16 years ago

Closed 15 years ago

#3350 closed (fixed)

Django should call time.tzset after setting TZ environment variable.

Reported by: Marc Fargas <telenieko@…> Owned by: anonymous
Component: Core (Other) Version: dev
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: 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!


Attachments (1)

Fix3350.diff (486 bytes) - added by Matt Boersma 15 years ago.
One-liner that fixes #3350.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 16 years ago by Simon G. <dev@…>

Triage Stage: UnreviewedAccepted

comment:2 Changed 15 years ago by anonymous

Owner: changed from nobody to anonymous
Status: newassigned

Changed 15 years ago by Matt Boersma

Attachment: Fix3350.diff added

One-liner that fixes #3350.

comment:3 Changed 15 years ago by Matt Boersma

Has patch: set

comment:4 Changed 15 years ago by Matt Boersma

Triage Stage: AcceptedReady for checkin

comment:5 Changed 15 years ago by Malcolm Tredinnick

Resolution: fixed
Status: assignedclosed

(In [6300]) Fixed #3350 -- Fixed timezone setting. Thanks, Matt Boersma.

Note: See TracTickets for help on using tickets.
Back to Top