Merge pull request #107 from berend/bugfix/fix_test_for_non_utc

fix test for non utc systems.
This commit is contained in:
A 2019-02-24 02:07:26 +00:00 committed by GitHub
commit 698706d2e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)