summaryrefslogtreecommitdiff
path: root/tests/regressiontests/dateformat/tests.py
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-11-29 19:39:46 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-11-29 19:39:46 +0000
commitf3c15225fc58ae45c6aa71eb5174ff66f3f5e974 (patch)
tree8d7641bf1cf793d21dc55cca00dee505f29ab3e4 /tests/regressiontests/dateformat/tests.py
parent260f9c51127702afcb1d2c669e0ec1855bdea58c (diff)
Fixed #6023 -- Fixed daylight savings determination for years beyond 2038 on
32-bit systems (modulo the fact that the system timezone libraries might not be accurate that far out; at least we don't crash now). Thanks, SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6749 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/dateformat/tests.py')
-rw-r--r--tests/regressiontests/dateformat/tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/regressiontests/dateformat/tests.py b/tests/regressiontests/dateformat/tests.py
index 30c9a4e6dd..481e36a7dd 100644
--- a/tests/regressiontests/dateformat/tests.py
+++ b/tests/regressiontests/dateformat/tests.py
@@ -66,6 +66,9 @@ u'1979 189 CET'
>>> format(my_birthday, r'jS o\f F')
u'8th of July'
+
+>>> format(the_future, r'Y')
+u'2100'
"""
from django.utils import dateformat, translation
@@ -84,3 +87,4 @@ except AttributeError:
my_birthday = datetime.datetime(1979, 7, 8, 22, 00)
summertime = datetime.datetime(2005, 10, 30, 1, 00)
wintertime = datetime.datetime(2005, 10, 30, 4, 00)
+the_future = datetime.datetime(2100, 10, 25, 0, 00)