From: Simon Gerber Date: Wed, 14 Apr 2010 12:02:38 +0000 (+0200) Subject: Fixed parse_timezone to correctly calculate the offset in seconds. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=991ea94492cd3d4fc6001efebf39493aff79815f;p=tig.git Fixed parse_timezone to correctly calculate the offset in seconds. Signed-off-by: Jonas Fonseca --- diff --git a/tig.c b/tig.c index 47daba9..05379fb 100644 --- a/tig.c +++ b/tig.c @@ -3896,8 +3896,8 @@ parse_timezone(struct time *time, const char *zone) tz = ('0' - zone[1]) * 60 * 60 * 10; tz += ('0' - zone[2]) * 60 * 60; - tz += ('0' - zone[3]) * 60; - tz += ('0' - zone[4]); + tz += ('0' - zone[3]) * 60 * 10; + tz += ('0' - zone[4]) * 60; if (zone[0] == '-') tz = -tz;