projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f00ce0
)
* Noted in rdf_parsedate() that the YYYY-MM-DDTHH:MM format is actually a quasi-stand...
author
Art Cancro
<ajc@citadel.org>
Mon, 23 Nov 2009 14:58:48 +0000
(14:58 +0000)
committer
Art Cancro
<ajc@citadel.org>
Mon, 23 Nov 2009 14:58:48 +0000
(14:58 +0000)
citadel/modules/rssclient/serv_rssclient.c
patch
|
blob
|
history
diff --git
a/citadel/modules/rssclient/serv_rssclient.c
b/citadel/modules/rssclient/serv_rssclient.c
index f35f84c43a3a52027502a1f79d32ceb946d87304..9293f637ab87aa604aaa2e4c012180fc44dc99ec 100644
(file)
--- 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;