Changes between Initial Version and Version 1 of Ticket #12970


Ignore:
Timestamp:
Feb 25, 2010, 3:15:04 PM (14 years ago)
Author:
Ramiro Morales
Comment:

Possibly a duplicate of #1480.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12970 – Description

    initial v1  
    11Django defaults (I believe) to Chicago time.  It often makes sense to set the time zone explicitly, but, in many applications, the system timezone (typically handled by /etc/localtime magic) is just fine.  I'd like to propose that
    22
     3{{{
    34        if hasattr(time, 'tzset'):
    45            # Move the time zone info into os.environ. See ticket #2315 for why
     
    67            os.environ['TZ'] = self.TIME_ZONE
    78            time.tzset()
     9}}}
    810
    9 be changed to start "if self.TIME_ZONE is not None and hasattr(time, 'tzset'): ...".
     11be changed to start
     12
     13{{{
     14if self.TIME_ZONE is not None and hasattr(time, 'tzset'):
     15...
     16}}}
    1017
    1118That way, if you explicitly set TIME_ZONE to None (this could be the default or not; doesn't matter to me), the system default will get used.
Back to Top