mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Refs #30990 -- Added test for 'z' date format with a leap year.
This commit is contained in:
parent
3ca77e2b84
commit
18e10740a4
@ -116,6 +116,9 @@ class DateFormatTests(SimpleTestCase):
|
||||
the_future = datetime(2100, 10, 25, 0, 00)
|
||||
self.assertEqual(dateformat.format(the_future, r'Y'), '2100')
|
||||
|
||||
def test_day_of_year_leap(self):
|
||||
self.assertEqual(dateformat.format(datetime(2000, 12, 31), 'z'), '366')
|
||||
|
||||
def test_timezones(self):
|
||||
my_birthday = datetime(1979, 7, 8, 22, 00)
|
||||
summertime = datetime(2005, 10, 30, 1, 00)
|
||||
|
Loading…
Reference in New Issue
Block a user