Skip to content
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

Export file creation/modification time should match note, not the time of export #3044

Closed
timmb opened this issue Apr 13, 2020 · 1 comment
Closed
Labels
bug It's a bug

Comments

@timmb
Copy link

timmb commented Apr 13, 2020

Notes in Joplin have an internal representation of their creation and modification date/time, which can be used for sorting.

However, when exporting (e.g. to MD files) this information is lost. I would expect to find the metadata of the file to be set accordingly but for me both the creation and modification time on the file is set to the time the export happened

Environment

Joplin version: 1.0.200
Platform: MacOS
OS specifics: 10.14.6

Steps to reproduce

  1. Select an existing note.
  2. (If creating a new note, wait until the current time exceeds the creation time shown for the note)
  3. Go to File -> Export -> MD file. Save the note somewhere
  4. Find the file using the OS file manager to check the modification and creation time. In my case, this is done by finding the file in Finder, right clicking and going to 'Get Info'.

Describe what you expected to happen

I expected the file's creation date to match the creation date of the note in Joplin, and the file's modification date to match the modification date of the note in Joplin.

NB MacOS also includes a 'date added' attribute. On this platform, it would make sense to set this to the time of export. Likewise for the 'date accessed' attribute on Windows.

@timmb timmb added the bug It's a bug label Apr 13, 2020
@laurent22
Copy link
Owner

Hmm, I don't know, this is a newly created file so it should have the current time as timestamp. Personally I don't like when apps mixes internal dates and file dates, so you end up with files created in 2006 even though you've created them today. If you want to preserve complete note metadata, there's always the RAW format.

@lock lock bot locked and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug It's a bug
Projects
None yet
Development

No branches or pull requests

2 participants