Code

Ticket #3350: Fix3350.diff

File Fix3350.diff, 486 bytes (added by mboersma, 7 years ago)

One-liner that fixes #3350.

Line 
1Index: django/conf/__init__.py
2===================================================================
3--- django/conf/__init__.py     (revision 6288)
4+++ django/conf/__init__.py     (working copy)
5@@ -112,6 +112,7 @@
6             # Move the time zone info into os.environ. See ticket #2315 for why
7             # we don't do this unconditionally (breaks Windows).
8             os.environ['TZ'] = self.TIME_ZONE
9+            time.tzset()
10 
11     def get_all_members(self):
12         return dir(self)