Skip to content

Commit 6be9fa8

Browse files
committed
fix fromisoformat for Python 3.6
1 parent 295a423 commit 6be9fa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/custom_scalars/test_datetime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def resolve_seconds(root, _info, interval):
7777
fields={
7878
"start": GraphQLInputField(
7979
DatetimeScalar,
80-
default_value=datetime.fromisoformat("2021-11-12T11:58:13.461161"),
80+
default_value=datetime(2021, 11, 12, 11, 58, 13, 461161),
8181
),
8282
"end": GraphQLInputField(DatetimeScalar),
8383
},

0 commit comments

Comments
 (0)