Opened 18 years ago

Closed 17 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

Description

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!

Origin: http://docs.python.org/lib/module-time.html

Attachments (1)

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

Download all attachments as: .zip

Change History (6)

comment:1 by Simon G. <dev@…>, 18 years ago

Triage Stage: UnreviewedAccepted

comment:2 by anonymous, 17 years ago

Owner: changed from nobody to anonymous
Status: newassigned

by Matt Boersma, 17 years ago

Attachment: Fix3350.diff added

One-liner that fixes #3350.

comment:3 by Matt Boersma, 17 years ago

Has patch: set

comment:4 by Matt Boersma, 17 years ago

Triage Stage: AcceptedReady for checkin

comment:5 by Malcolm Tredinnick, 17 years ago

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