From 666bebaea8d9013a5a650ee4c0437fd44cab7a2d Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Mon, 5 Jan 2015 14:42:52 +0100 Subject: sfeed: fix for "2015-01-05T09:44:46.555Z" --- sfeed.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sfeed.c b/sfeed.c index dd76a2d..7175be0 100644 --- a/sfeed.c +++ b/sfeed.c @@ -312,7 +312,8 @@ gettimetz(const char *s, char *buf, size_t bufsiz, int *tzoffset) char c = '+'; size_t i; - s = trimstart(s); + for(; *s && !isalpha(*s) && *s != '-' && *s != '+'; s++) + ; if(!*s || *s == 'Z' || *s == 'z') goto time_ok; -- cgit v1.2.3