[nautilus] tracker-search: fix datetime format
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] tracker-search: fix datetime format
- Date: Thu, 12 Aug 2021 16:45:54 +0000 (UTC)
commit 0503af3d225c1556f22f561c8d4e80308910fbdf
Author: Nishit Patel <nishitlimbani130 gmail com>
Date: Thu Jul 29 13:59:48 2021 +0530
tracker-search: fix datetime format
use `g_date_time_format_iso8601` to properly format
datetime as SPARQL only accepts ISO8601 format
fixes #1933
src/nautilus-search-engine-tracker.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-search-engine-tracker.c b/src/nautilus-search-engine-tracker.c
index a23ff6f40..a3e20b6dd 100644
--- a/src/nautilus-search-engine-tracker.c
+++ b/src/nautilus-search-engine-tracker.c
@@ -419,8 +419,8 @@ nautilus_search_engine_tracker_start (NautilusSearchProvider *provider)
shifted_end_date = g_date_time_add_days (end_date, 1);
type = nautilus_query_get_search_type (tracker->query);
- initial_date_format = g_date_time_format (initial_date, "%Y-%m-%dT%H:%M:%S");
- end_date_format = g_date_time_format (shifted_end_date, "%Y-%m-%dT%H:%M:%S");
+ initial_date_format = g_date_time_format_iso8601 (initial_date);
+ end_date_format = g_date_time_format_iso8601 (shifted_end_date);
g_string_append (sparql, " && ");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]