antoniotejada / obsidian-edit-history

Obsidian Edit History Plugin, automatically save all the edit history of a note, browse and restore previous versions
GNU Affero General Public License v3.0
55 stars 1 forks source link

Change zip file date to modified file date #15

Open antoniotejada opened 7 months ago

antoniotejada commented 7 months ago

The zip file date is used as a proxy for the last version file date, but the zip file date can be off depending on the time it takes to generate the diff and write the zip file, which can cause drift in the next diff comparision.

Change the zip file date after writing to it to match the modified file date.

See https://github.com/antoniotejada/obsidian-edit-history/issues/14#issuecomment-2011074991