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 bc35e7f commit c95ff03Copy full SHA for c95ff03
graphene/tests/issues/test_1293.py
@@ -1,6 +1,6 @@
1
# https://github.com/graphql-python/graphene/issues/1293
2
3
-import datetime
+from datetime import datetime, timezone
4
5
import graphene
6
from graphql.utilities import print_schema
@@ -9,11 +9,11 @@
9
class Filters(graphene.InputObjectType):
10
datetime_after = graphene.DateTime(
11
required=False,
12
- default_value=datetime.datetime.utcfromtimestamp(1434549820776 / 1000),
+ default_value=datetime.fromtimestamp(1434549820.776, timezone.utc),
13
)
14
datetime_before = graphene.DateTime(
15
16
- default_value=datetime.datetime.utcfromtimestamp(1444549820776 / 1000),
+ default_value=datetime.fromtimestamp(1444549820.776, timezone.utc),
17
18
19
0 commit comments