summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfeed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfeed.c b/sfeed.c
index 8013551..43f9bba 100644
--- a/sfeed.c
+++ b/sfeed.c
@@ -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');