Changed dateformat unit tests so that they use the en-us language. They 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
This commit is contained in:
parent
31d18380f9
commit
ba87f474dc
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue