diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2023-08-12 10:08:29 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2023-08-12 10:08:29 +0200 |
commit | f87eb3c1043d3f4f8e22ba505cd1a827241e160c (patch) | |
tree | e46351c8ec622c9d13232cf00c8a1048e55184af /src/db | |
parent | 7f667adb7b8d3a803a6cd6120dcea4ba4ff89075 (diff) | |
parent | 2333d2b06d52754a55a747fa438844286f98d53a (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/PhotoTable.vala | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/db/PhotoTable.vala b/src/db/PhotoTable.vala index 4e3f672..420b209 100644 --- a/src/db/PhotoTable.vala +++ b/src/db/PhotoTable.vala @@ -1170,8 +1170,11 @@ public class BackingPhotoRow { if (timestamp == null) return false; - - return timestamp.equal(info.get_modification_date_time()); + + // Need to remove the microseconds from the FileInfo, since the database + // just stores second granularity, causing the file to be marked as modified all + // the time + return timestamp.equal(coarsify_date_time(info.get_modification_date_time())); } public bool is_touched(FileInfo info) { @@ -1180,8 +1183,11 @@ public class BackingPhotoRow { if (timestamp == null) return true; - - return !timestamp.equal(info.get_modification_date_time()); + + // Need to remove the microseconds from the FileInfo, since the database + // just stores second granularity, causing the file to be marked as modified all + // the time + return !timestamp.equal(coarsify_date_time(info.get_modification_date_time())); } // Copies another backing photo row into this one. |