get mtime in utc

This commit is contained in:
David Lord 2017-04-13 14:55:56 -07:00
parent 78cb96fde0
commit bf6910a639
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8

View file

@ -517,7 +517,7 @@ class TestSendfile(object):
assert rv.status_code == 416
rv.close()
last_modified = datetime.datetime.fromtimestamp(os.path.getmtime(
last_modified = datetime.datetime.utcfromtimestamp(os.path.getmtime(
os.path.join(app.root_path, 'static/index.html'))).replace(
microsecond=0)