[tracker] TrackerMinerFS: Update mtime checking with latest tracker-store requirements.



commit 0cb1d62e4a9546b73e74c3d366d5a80a942149d9
Author: Carlos Garnacho <carlos lanedo com>
Date:   Mon Oct 19 17:00:31 2009 +0200

    TrackerMinerFS: Update mtime checking with latest tracker-store requirements.
    
    mtimes are now stored with timezone info in tracker-store, TrackerMinerFS should
    use the same format when checking a file has been modified.

 src/libtracker-miner/tracker-miner-fs.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 9920c53..ccd3ed0 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -1251,13 +1251,13 @@ should_change_index_for_file (TrackerMinerFS *fs,
 
 	gmtime_r (&mtime, &t);
 
-	query = g_strdup_printf ("SELECT ?file { ?file nfo:fileLastModified \"%04d-%02d-%02dT%02d:%02d:%02d\" . FILTER (?file = <%s>) }",
-	                         t.tm_year + 1900, 
-				 t.tm_mon + 1, 
-				 t.tm_mday, 
-				 t.tm_hour, 
-				 t.tm_min, 
-				 t.tm_sec, 
+	query = g_strdup_printf ("SELECT ?file { ?file nfo:fileLastModified \"%04d-%02d-%02dT%02d:%02d:%02dZ\" . FILTER (?file = <%s>) }",
+	                         t.tm_year + 1900,
+				 t.tm_mon + 1,
+				 t.tm_mday,
+				 t.tm_hour,
+				 t.tm_min,
+				 t.tm_sec,
 				 uri);
 	sparql_result = tracker_miner_execute_sparql (TRACKER_MINER (fs), query, NULL);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]