Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed dateformat unit tests so that they use the en-us language. Th…

…ey were failing because they depended on the current user's LANGUAGE_CODE setting

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ba87f474dc1883aff039c5fbd659bd70e749ee71 1 parent 31d1838
Adrian Holovaty adrianholovaty authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 tests/othertests/
6 tests/othertests/
@@ -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'
my_birthday = datetime.datetime(1979, 7, 7, 22, 00)
Please sign in to comment.
Something went wrong with that request. Please try again.