diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-01-05 14:42:52 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-01-05 14:42:52 +0100 |
commit | 666bebaea8d9013a5a650ee4c0437fd44cab7a2d (patch) | |
tree | d224190606589ac9487df6f6eb92211d776a0c2b | |
parent | fae7e0289118b0211d0fabc12694777a0d6f3772 (diff) |
sfeed: fix for "2015-01-05T09:44:46.555Z"
-rw-r--r-- | sfeed.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |