Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
Nuovo sito
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
Nuovo sito
Commits
fed54f87
Commit
fed54f87
authored
Dec 27, 2023
by
shadMod
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comment st_birthtime and replaced with st_mtime - look TODO
parent
6e5458de
Pipeline
#363
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
uitwww/src/news/utils.py
uitwww/src/news/utils.py
+3
-1
No files found.
uitwww/src/news/utils.py
View file @
fed54f87
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment