Skip to content

Commit 698706d

Browse files
authored
Merge pull request #107 from berend/bugfix/fix_test_for_non_utc
fix test for non utc systems.
2 parents db5d825 + f08257b commit 698706d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi_core/schema/schemas/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ def format_date(value):
2323

2424
def format_datetime(value):
2525
timestamp = strict_rfc3339.rfc3339_to_timestamp(value)
26-
return datetime.datetime.fromtimestamp(timestamp)
26+
return datetime.datetime.utcfromtimestamp(timestamp)

0 commit comments

Comments
 (0)