From 46b756cc19e199c89fe3b090885243d1c501262b Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Thu, 6 Aug 2015 17:33:28 +0200 Subject: sfeed: fix, skip milliseconds for: %Y-%m-%dT%H:%M:%S.000Z --- sfeed.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sfeed.c b/sfeed.c index 3ba70c9..1e5d7e6 100644 --- a/sfeed.c +++ b/sfeed.c @@ -233,6 +233,11 @@ gettimetz(const char *s, char *buf, size_t bufsiz, int *tzoffset) int tzhour = 0, tzmin = 0, r; size_t i; + /* skip milliseconds for: %Y-%m-%dT%H:%M:%S.000Z */ + if (*s == '.') { + for (s++; *s && isdigit((int)*s); s++) + ; + } if (!*s || *s == 'Z' || *s == 'z') goto time_ok; /* skip whitespace */ -- cgit v1.2.3