Skip to content

Commit 47dcb8d

Browse files
author
Sven Perkmann
committed
generalising test for formatted datefield so it works with different timezones
1 parent 5a37a32 commit 47dcb8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def test_date_field(self):
5353

5454
def test_date_field_format(self):
5555
d = date(2000, 1, 1)
56-
self.assertField(DateField(d, d, format='%s', transform=int), 946681200)
56+
self.assertField(DateField(d, d, format='%s', transform=int), int(d.strftime('%s')))
5757

5858
def test_datetime_field(self):
5959
min_date = datetime(2015, 1, 1)

0 commit comments

Comments
 (0)