sfeed

simple feed reader - forked from git.codemadness.org/sfeed
git clone git://src.gearsix.net/sfeed
Log | Files | Refs | Atom | README | LICENSE

commit 46b756cc19e199c89fe3b090885243d1c501262b
parent a917dd06f09b3f15daf8c8f63397468be81ac488
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu,  6 Aug 2015 17:33:28 +0200

sfeed: fix, skip milliseconds for: %Y-%m-%dT%H:%M:%S.000Z

Diffstat:
Msfeed.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git 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 */