Browse Source

get mtime in utc

pull/2242/head
David Lord 8 years ago
parent
commit
bf6910a639
No known key found for this signature in database
GPG Key ID: 7A1C87E3F5BC42A8
  1. 2
      tests/test_helpers.py

2
tests/test_helpers.py

@ -517,7 +517,7 @@ class TestSendfile(object):
assert rv.status_code == 416 assert rv.status_code == 416
rv.close() 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( os.path.join(app.root_path, 'static/index.html'))).replace(
microsecond=0) microsecond=0)

Loading…
Cancel
Save