diff options
author | mjfernez <mjf@mjfer.net> | 2022-02-06 16:31:24 -0500 |
---|---|---|
committer | mjfernez <mjf@mjfer.net> | 2022-02-06 16:31:24 -0500 |
commit | 046ca465465a9eb84c5d06eba5ccbdedb2c693ef (patch) | |
tree | e2c3431ba0f2ed1ae4467b355d3c269f16e8b636 | |
parent | f9060ba9af14a023884dc496cba1457ed185439c (diff) | |
download | ezcms-046ca465465a9eb84c5d06eba5ccbdedb2c693ef.tar.gz |
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
-rw-r--r-- | view_functions.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): """ |