-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Feature request) Modify note creation and modification time through api? #4199
Comments
I've added the possibility to specify |
Awesome, thank you @zadam . Are you not wanting to allow updating the modification date at all? I think it'd be useful when importing notes, but I don't know if there's a use-case outside of that to be able to change it later. |
It's kinda difficult/fragile because modification time is just set with each insert/update. I also assume it's generally less valuable than the creation date since it's bound to be changed by mistake or otherwise ... |
Got it, thanks! I also noticed the modified time is based on the different revisions instead of just the note itself, so I could see it being finicky. 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 It was just a one-time thing for me so not super worried about it breaking anything, but it does use sql directly |
Is there a way to change creation dates from the front-end, or is this the only method? Thanks in advance. |
Describe feature
I'm currently testing out Trilium (thanks so much for making it!), and one of the things I want to do is import all of my old notes from Joplin and Obsidian.
I have this mostly working thanks to trilium-py, but one thing I haven't been able to figure out yet is how to set the note's creation and lastupdated timestamps. Is this currently possible using the ETAPI somehow?
If not, would you consider this as a feature request?
Thanks!
Additional Information
For reference, Nriver/trilium-py#24
The text was updated successfully, but these errors were encountered: