summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/othertests/dateformat.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/othertests/dateformat.py b/tests/othertests/dateformat.py
index fe8bc8256d..c4cfd943aa 100644
--- a/tests/othertests/dateformat.py
+++ b/tests/othertests/dateformat.py
@@ -63,11 +63,13 @@ NotImplementedError
'1979 188 CET'
"""
-from django.utils import dateformat
-format = dateformat.format
+from django.utils import dateformat, translation
import datetime, os, time
+format = dateformat.format
os.environ['TZ'] = 'Europe/Copenhagen'
+translation.activate('en-us')
+
time.tzset()
my_birthday = datetime.datetime(1979, 7, 7, 22, 00)