forked from orbit-oss/flask
get mtime in utc
This commit is contained in:
parent
78cb96fde0
commit
bf6910a639
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue