* Noted in rdf_parsedate() that the YYYY-MM-DDTHH:MM format is actually a quasi-stand...
authorArt Cancro <ajc@citadel.org>
Mon, 23 Nov 2009 14:58:48 +0000 (14:58 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 23 Nov 2009 14:58:48 +0000 (14:58 +0000)
citadel/modules/rssclient/serv_rssclient.c

index f35f84c43a3a52027502a1f79d32ceb946d87304..9293f637ab87aa604aaa2e4c012180fc44dc99ec 100644 (file)
@@ -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;