diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-08-06 17:33:28 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-08-06 17:33:28 +0200 |
commit | 46b756cc19e199c89fe3b090885243d1c501262b (patch) | |
tree | ae00f8ba17da484bba074f1128662e68163c2e84 | |
parent | a917dd06f09b3f15daf8c8f63397468be81ac488 (diff) |
sfeed: fix, skip milliseconds for: %Y-%m-%dT%H:%M:%S.000Z
-rw-r--r-- | sfeed.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 */ |