Home / GitHub Page

Cannot set user_updated_time with CLI

Not sure if it is a bug, or my misunderstanding of what this field is for. For example if I do the following on an existing note:

joplin --profile ~/.config/joplin-desktop set "A Note" user_updated_time 1

Then the timestamp reported when I cat the note is: user_updated_time: 2019-10-11T01:09:03.446Z (which is now).

I was expecting: user_updated_time: 1970-01-01T00:00:00.001Z

When I do the same for user_created_time, it does work as I expect.

Just a guess, but it feels like setting the user_updated_time is an update that causes the timestamp itself to be updated. I thought the timestamp I set would stick until the next time I modified the note in the GUI application.

Version 1.0.149 (prod) of the CLI
Version 1.0.169 (prod, linux) of the GUI
OS: Ubuntu 1804

That will be fixed in the next release: https://github.com/laurent22/joplin/commit/7d7975daf43d61a72c31dffafa6d339aed46a1ff

Thank you!