Skip to content

Commit

Permalink
getmtime instead of create time
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroshk committed Dec 19, 2022
1 parent 2cfe332 commit f019bd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebook_examples/make_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def make_readme():
for key in parsed_bib:
index_json_entry[key.replace(' ', '_')] = parsed_bib[key]
# add create time for notebooks
create_time_float = os.path.getctime(parsed_bib['filename'])
create_time_float = os.path.getmtime(parsed_bib['filename'])
index_json_entry['create_time'] = (datetime.datetime.utcfromtimestamp(create_time_float)).isoformat()
index_json_content.append(index_json_entry)

Expand Down

0 comments on commit f019bd5

Please sign in to comment.