Zim

File date of attachments set to "now"

Bug #780184 reported by zsquareplusc
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zim
Undecided
Unassigned

Bug Description

Attaching a file (Menu: Tools-> Attach File) makes a copy of the file with the creation date set to "now".

I would prefer if the date and times of the original file were copied.

Zim 0.52. Seen on Linux and Windows.

Related branches

Revision history for this message
Oliver Joos (oliver-joos) wrote :

@zsquareplusc: I guess you mean modification (not creation) date.

I have a quick fix (one-liner) that also fixes menu "Insert->Image...". The modification date ('ls -l') will be copied from the original file, whereas the creation date ('ls -lc') will be set to now. Agreed?

I tested it in Linux (Ubuntu 10.04). Please check it in Windows and give feedback.
http://bazaar.launchpad.net/~oliver-joos/zim/quick_fixes/revision/397

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Changed patch by actually changing this in the proper place in zim.fs instead of in zim.gui. Changed the copyto() method to use copy2() instead of copy() that should cover all meta data that can be copied.

Will commit fix in rev397

Changed in zim:
status: New → Fix Committed
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Fix released in zim 0.53.

Changed in zim:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers