Changeset 4487
- Timestamp:
- 02/11/07 18:10:09 (2 years ago)
- Files:
-
- django/trunk/AUTHORS (modified) (1 diff)
- django/trunk/django/conf/__init__.py (modified) (2 diffs)
- django/trunk/django/conf/project_template/settings.py (modified) (1 diff)
- django/trunk/docs/settings.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/AUTHORS
r4482 r4487 80 80 Clint Ecker 81 81 Enrico <rico.bl@gmail.com> 82 Marc Fargas <telenieko@telenieko.com> 82 83 favo@exoweb.net 83 84 Eric Floehr <eric@intellovations.com> django/trunk/django/conf/__init__.py
r3951 r4487 8 8 9 9 import os 10 import time # Needed for Windows 10 11 from django.conf import global_settings 11 12 … … 106 107 self.INSTALLED_APPS = new_installed_apps 107 108 108 # move the time zone info into os.environ 109 os.environ['TZ'] = self.TIME_ZONE 109 if hasattr(time, 'tzset'): 110 # Move the time zone info into os.environ. See ticket #2315 for why 111 # we don't do this unconditionally (breaks Windows). 112 os.environ['TZ'] = self.TIME_ZONE 110 113 111 114 def get_all_members(self): django/trunk/django/conf/project_template/settings.py
r4265 r4487 19 19 # Local time zone for this installation. All choices can be found here: 20 20 # http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE 21 # If running in a Windows environment this must be set to the same as your 22 # system time zone. 21 23 TIME_ZONE = 'America/Chicago' 22 24 django/trunk/docs/settings.txt
r4420 r4487 828 828 running in the correct environment. 829 829 830 .. note:: 831 Django cannot reliably use alternate time zones in a Windows environment. 832 When running Django on Windows this variable must be set to match the 833 system timezone. 834 830 835 URL_VALIDATOR_USER_AGENT 831 836 ------------------------
