mirror of
https://github.com/correl/openapi-core.git
synced 2024-11-22 03:00:10 +00:00
fix test for non utc systems.
`strict_rfc3339.rfc3339_to_timestamp()` is tz aware `datetime.datetime.fromtimestamp` is not this causes the test `test_string_format_datetime` to fail on system that are not on utc
This commit is contained in:
parent
db5d825395
commit
f08257b853
1 changed files with 1 additions and 1 deletions
|
@ -23,4 +23,4 @@ def format_date(value):
|
|||
|
||||
def format_datetime(value):
|
||||
timestamp = strict_rfc3339.rfc3339_to_timestamp(value)
|
||||
return datetime.datetime.fromtimestamp(timestamp)
|
||||
return datetime.datetime.utcfromtimestamp(timestamp)
|
||||
|
|
Loading…
Reference in a new issue