Changes between Initial Version and Version 1 of Ticket #12970
- Timestamp:
- Feb 25, 2010, 3:15:04 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12970 – Description
initial v1 1 1 Django 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 2 2 3 {{{ 3 4 if hasattr(time, 'tzset'): 4 5 # Move the time zone info into os.environ. See ticket #2315 for why … … 6 7 os.environ['TZ'] = self.TIME_ZONE 7 8 time.tzset() 9 }}} 8 10 9 be changed to start "if self.TIME_ZONE is not None and hasattr(time, 'tzset'): ...". 11 be changed to start 12 13 {{{ 14 if self.TIME_ZONE is not None and hasattr(time, 'tzset'): 15 ... 16 }}} 10 17 11 18 That 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.