diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2019-03-03 13:20:21 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2019-03-03 13:20:21 +0100 |
commit | 5c7b95403cbbd62c225a78ed565efa0e76af54b0 (patch) | |
tree | 0de8d8947e0b62893888bb2dd28ea529e489e007 | |
parent | 893de4b513adfa7464dbbc454151b9ec1559c0db (diff) |
gettzoffset: bit more strict UTC offset parsing
-rw-r--r-- | sfeed.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -433,7 +433,7 @@ gettzoffset(const char *s) case '+': for (i = 0, p = s + 1; i < 2 && *p && isdigit((unsigned char)*p); i++, p++) tzhour = (tzhour * 10) + (*p - '0'); - if (*p && !isdigit((unsigned char)*p)) + if (*p == ':') p++; for (i = 0; i < 2 && *p && isdigit((unsigned char)*p); i++, p++) tzmin = (tzmin * 10) + (*p - '0'); |