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 2202e11 commit 466ffe1Copy full SHA for 466ffe1
backend/common/schema.py
@@ -25,7 +25,7 @@ class SchemaBase(BaseModel):
25
use_enum_values=True,
26
json_encoders={
27
datetime: lambda x: timezone.to_str(timezone.from_datetime(x))
28
- if x.tzinfo is not None
+ if x.tzinfo is not None and x.tzinfo != timezone.tz_info
29
else timezone.to_str(x)
30
},
31
)
0 commit comments