From d0aaad443a88968dc61172c050084d3d9faa7602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 12 Aug 2023 10:07:35 +0200 Subject: New upstream version 0.32.2 --- src/db/PhotoTable.vala | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/db/PhotoTable.vala') 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. -- cgit v1.2.3