From 046ca465465a9eb84c5d06eba5ccbdedb2c693ef Mon Sep 17 00:00:00 2001 From: mjfernez Date: Sun, 6 Feb 2022 16:31:24 -0500 Subject: Correct file last modified time I cannot read apparently. The .ct_time attribute from os.stat tells you the last METADATA change of the file. We only care about content here --- view_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view_functions.py b/view_functions.py index 1131778..960271f 100644 --- a/view_functions.py +++ b/view_functions.py @@ -20,7 +20,7 @@ def default_context(): def file_last_modified(path): - return ctime(os.stat(path).st_ctime) + return ctime(os.stat(path).st_mtime) def index_dir(path): """ -- cgit v1.2.3