mirror of
https://github.com/correl/openapi-core.git
synced 2025-01-01 11:03:19 +00:00
Merge pull request #107 from berend/bugfix/fix_test_for_non_utc
fix test for non utc systems.
This commit is contained in:
commit
698706d2e4
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