We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6158d8a commit 30b0263Copy full SHA for 30b0263
1 file changed
tests/test_transform.py
@@ -67,6 +67,12 @@ def test_datetime_transform(self):
67
trans.integer_datetime_fmt = UNIX_SECONDS_INTEGER_DATETIME_PARSING
68
self.assertIsNone(trans._transform_datetime('cat'))
69
70
+ def test_datetime_string_with_timezone(self):
71
+ schema = {"type": "string", "format": "date-time"}
72
+ string_datetime = "2017-03-18T07:00:05-0700"
73
+ transformed_string_datetime = "2017-03-18T14:00:05.000000Z"
74
+ self.assertEqual(transformed_string_datetime, transform(string_datetime, schema))
75
+
76
def test_datetime_fractional_seconds_transform(self):
77
schema = {"type": "string", "format": "date-time"}
78
string_datetime = "2017-01-01T00:00:00.123000Z"
0 commit comments