From 19957bc272e745af7b56b79fa648e8b6b77113b1 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Thu, 4 Jul 2024 18:26:51 +0200 Subject: sfeed.c: separator T could be lowercase From RFC3339: 5.6. Internet Date/Time Format " [...] NOTE: Per [ABNF] and ISO8601, the "T" and "Z" characters in this syntax may alternatively be lower case "t" or "z" respectively. This date/time format may be used in some environments or contexts that distinguish between the upper- and lower-case letters 'A'-'Z' and 'a'-'z' (e.g. XML). Specifications that use this format in such environments MAY further limit the date/time syntax so that the letters 'T' and 'Z' used in the date/time syntax must always be upper case. Applications that generate this format SHOULD use upper case letters. " Reference: https://www.rfc-editor.org/rfc/rfc3339 --- sfeed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfeed.c b/sfeed.c index cdd528c..16141cf 100644 --- a/sfeed.c +++ b/sfeed.c @@ -646,7 +646,7 @@ parsetime(const char *s, long long *tp) va[vi] = v; if ((vi < 2 && *s == '-') || - (vi == 2 && (*s == 'T' || ISSPACE((unsigned char)*s))) || + (vi == 2 && (*s == 'T' || *s == 't' || ISSPACE((unsigned char)*s))) || (vi > 2 && *s == ':')) s++; } -- cgit v1.2.3