From d0d736c5dd6a60b231f707edf81b47f6f62c16aa Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 23 Nov 2009 14:58:48 +0000 Subject: [PATCH] * Noted in rdf_parsedate() that the YYYY-MM-DDTHH:MM format is actually a quasi-standard known as 'W3C DateTime'. --- citadel/modules/rssclient/serv_rssclient.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/citadel/modules/rssclient/serv_rssclient.c b/citadel/modules/rssclient/serv_rssclient.c index f35f84c43..9293f637a 100644 --- a/citadel/modules/rssclient/serv_rssclient.c +++ b/citadel/modules/rssclient/serv_rssclient.c @@ -410,7 +410,12 @@ time_t rdf_parsedate(char *p) memset(&tm, 0, sizeof tm); - /* YYYY-MM-DDTHH:MM format... + /* + * If the timestamp appears to be in W3C datetime format, try to + * parse it. See also: http://www.w3.org/TR/NOTE-datetime + * + * This code, along with parsedate.c, is a potential candidate for + * moving into libcitadel. */ if ( (p[4] == '-') && (p[7] == '-') ) { tm.tm_year = atoi(&p[0]) - 1900; -- 2.39.2