Skip to content

Commit

Permalink
Changed dateformat unit tests so that they use the en-us language. Th…
Browse files Browse the repository at this point in the history
…ey were failing because they depended on the current user's LANGUAGE_CODE setting

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1145 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Nov 9, 2005
1 parent 31d1838 commit ba87f47
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/othertests/dateformat.py
Expand Up @@ -63,11 +63,13 @@
'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)
Expand Down

0 comments on commit ba87f47

Please sign in to comment.