Skip to content

Commit bf6910a

Browse files
committed
get mtime in utc
1 parent 78cb96f commit bf6910a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ def index():
517517
assert rv.status_code == 416
518518
rv.close()
519519

520-
last_modified = datetime.datetime.fromtimestamp(os.path.getmtime(
520+
last_modified = datetime.datetime.utcfromtimestamp(os.path.getmtime(
521521
os.path.join(app.root_path, 'static/index.html'))).replace(
522522
microsecond=0)
523523

0 commit comments

Comments
 (0)