[tracker/tracker-0.8] libtracker-common: NB#167616, Improve error message for invalid xsd:dateTime



commit f6990e2cc23bd52159ea732332cb6bc414611fc7
Author: Philip Van Hoof <philip codeminded be>
Date:   Mon May 10 12:13:43 2010 +0200

    libtracker-common: NB#167616, Improve error message for invalid xsd:dateTime

 src/libtracker-common/tracker-date-time.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-common/tracker-date-time.c b/src/libtracker-common/tracker-date-time.c
index 63d666a..b86d041 100644
--- a/src/libtracker-common/tracker-date-time.c
+++ b/src/libtracker-common/tracker-date-time.c
@@ -74,7 +74,7 @@ tracker_string_to_date (const gchar *date_string,
 	if (!g_regex_match (regex, date_string, 0, &match_info)) {
 		g_match_info_free (match_info);
 		g_set_error (error, TRACKER_DATE_ERROR, TRACKER_DATE_ERROR_INVALID_ISO8601,
-		             "Not a ISO 8601 date string");
+		             "Not a ISO 8601 date string. Allowed form is [-]CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]");
 		return -1;
 	}
 



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