-
Is there a way to get at and modify a note's date attributes? I'm migrating a large body of material to Trilium from various sources and I'd like to keep the Created date unchanged. I can think of scenarios where that's a bad idea, so I'd be okay with a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Research: woofiegrrl: I have found instructions for modifying the note creation date through the API here zadam: I've added the possibility to specify justyns: I ended up writing a backend script to convert label attributes to created/updated timestamps after the notes are created: https://github.com/justyns/trilium-scripts/blob/master/joplin-import-helpers/joplin-convert-attribute-to-ctime.js I tried using trilium-py module to modify Traceback (most recent call last):
File "A:\code\metril\patch-date-from-content.py", line 93, in <module>
ea.patch_note(x, dateCreated=content_date)
TypeError: ETAPI.patch_note() got an unexpected keyword argument 'dateCreated' |
Beta Was this translation helpful? Give feedback.
-
meta: how to set this Q as "answered"? |
Beta Was this translation helpful? Give feedback.
Research:
woofiegrrl: I have found instructions for modifying the note creation date through the API here
From < https://www.reddit.com/r/Trilium/comments/1aritj9/modifying_note_creation_date/>
zadam: I've added the possibility to specify
dateCreated
andutcDateCreated
to the ETAPI. The modification date is still generated automatically.From < https://github.com/zadam/trilium/issues/4199>
justyns: I ended up writing a backend script to convert label attributes to created/updated timestamps after the notes are created: https://github.com/justyns/trilium-scripts/blob/master/joplin-import-helpers/joplin-convert-attribute-to-ctime.js
From < https://github.com/zadam/trilium/issues/4199>
I tri…