We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 747d5fc commit 8338f26Copy full SHA for 8338f26
tests/test_PandasDateTimeHelper.py
@@ -22,7 +22,7 @@ def test_parse_date(self):
22
self.assertEqual(date.nanosecond, 158)
23
24
def test_to_nanoseconds(self):
25
- date = self.helper.parse_date('2020-08-07T06:21:57.331249158Z')
+ date = self.helper.parse_date('2020-08-07T06:21:57.331249158Z').replace(tzinfo=timezone.utc)
26
nanoseconds = self.helper.to_nanoseconds(date - datetime.utcfromtimestamp(0).replace(tzinfo=timezone.utc))
27
28
self.assertEqual(nanoseconds, 1596781317331249158)
0 commit comments