mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
fix created timestamp in notebook model
This commit is contained in:
parent
f894dbe664
commit
cc08837111
@ -211,7 +211,7 @@ class FileNotebookManager(NotebookManager):
|
|||||||
model['name'] = name
|
model['name'] = name
|
||||||
model['path'] = path
|
model['path'] = path
|
||||||
model['last_modified'] = last_modified
|
model['last_modified'] = last_modified
|
||||||
model['created'] = last_modified
|
model['created'] = created
|
||||||
if content is True:
|
if content is True:
|
||||||
with io.open(os_path, 'r', encoding='utf-8') as f:
|
with io.open(os_path, 'r', encoding='utf-8') as f:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user