Django

Code

Ticket #3350 (closed: fixed)

Opened 2 years ago

Last modified 1 year ago

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

Reported by: Marc Fargas <telenieko@telenieko.com> Assigned to: anonymous
Milestone: Component: Core framework
Version: SVN Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

Fix3350.diff (486 bytes) - added by mboersma on 09/15/07 10:53:48.
One-liner that fixes #3350.

Change History

01/23/07 18:39:54 changed by Simon G. <dev@simon.net.nz>

  • needs_better_patch changed.
  • stage changed from Unreviewed to Accepted.
  • needs_tests changed.
  • needs_docs changed.

09/15/07 10:29:11 changed by anonymous

  • owner changed from nobody to anonymous.
  • status changed from new to assigned.

09/15/07 10:53:48 changed by mboersma

  • attachment Fix3350.diff added.

One-liner that fixes #3350.

09/15/07 10:54:50 changed by mboersma

  • has_patch set to 1.

09/15/07 10:57:06 changed by mboersma

  • stage changed from Accepted to Ready for checkin.

09/15/07 13:11:44 changed by mtredinnick

  • status changed from assigned to closed.
  • resolution set to fixed.

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


Add/Change #3350 (Django should call time.tzset after setting TZ environment variable.)




Change Properties
Action