From f98dead1ab36b4bb35d4dc8e4a836600544c85a6 Mon Sep 17 00:00:00 2001 From: Itai Shirav Date: Tue, 23 Jun 2020 11:26:20 +0300 Subject: [PATCH] DateTime64 field - additional fixes & docs --- tests/test_simple_fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_simple_fields.py b/tests/test_simple_fields.py index 1494bda..0e89ed5 100644 --- a/tests/test_simple_fields.py +++ b/tests/test_simple_fields.py @@ -36,7 +36,7 @@ class SimpleFieldsTest(unittest.TestCase): # Valid values for value in self.dates + [ datetime(1970, 1, 1, microsecond=100000), - datetime(1970, 1, 1, microsecond=100000).astimezone(pytz.timezone('US/Eastern')), + pytz.timezone('US/Eastern').localize(datetime(1970, 1, 1, microsecond=100000)), '1970-01-01 00:00:00.1', '1970-01-17 00:00:17.1', '0000-00-00 00:00:00.1', 0.1, '2017-07-26T08:31:05.1', '2017-07-26T08:31:05.1Z', '2017-07-26 08:31.1', '2017-07-26T13:31:05.1+05', '2017-07-26 13:31:05.1+0500'