summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-01-05 14:42:52 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-01-05 14:42:52 +0100
commit666bebaea8d9013a5a650ee4c0437fd44cab7a2d (patch)
treed224190606589ac9487df6f6eb92211d776a0c2b
parentfae7e0289118b0211d0fabc12694777a0d6f3772 (diff)
sfeed: fix for "2015-01-05T09:44:46.555Z"
-rw-r--r--sfeed.c3
1 files changed, 2 insertions, 1 deletions
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;