Commit fed54f87 authored by shadMod's avatar shadMod 💬

comment st_birthtime and replaced with st_mtime - look TODO

parent 6e5458de
Pipeline #363 passed with stage
in 0 seconds
......@@ -150,7 +150,9 @@ class GetNews:
if not fmt:
fmt = "%d %B %Y - %H:%M"
_birth_time = os.stat(pathfile).st_birthtime
# TODO: st_birthtime not exist, so I use st_mtime
# _birth_time = os.stat(pathfile).st_birthtime
_birth_time = os.stat(pathfile).st_mtime
_birth_time = datetime.fromtimestamp(_birth_time).strftime(fmt)
_last_edit = os.stat(pathfile).st_mtime
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment