[rygel] tracker3: Fix date comparison



commit ed9f65c20441c774a9da50bae0a016512023726f
Author: Jens Georg <mail jensge org>
Date:   Sun May 31 17:25:11 2020 +0200

    tracker3: Fix date comparison

 src/plugins/tracker3/rygel-tracker-years.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/tracker3/rygel-tracker-years.vala b/src/plugins/tracker3/rygel-tracker-years.vala
index 5beedf4b..0807d23d 100644
--- a/src/plugins/tracker3/rygel-tracker-years.vala
+++ b/src/plugins/tracker3/rygel-tracker-years.vala
@@ -46,7 +46,7 @@ public class Rygel.Tracker.Years : MetadataValues {
         year += "-01-01T00:00:00Z";
         next_year += "-01-01T00:00:00Z";
 
-        return variable + " > \"" + year + "\" && " +
-               variable + " < \"" + next_year + "\"";
+        return variable + " > \"" + year + "\"^^xsd:dateTime && " +
+               variable + " < \"" + next_year + "\"^^xsd:dateTime";
     }
 }


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