From 991ea94492cd3d4fc6001efebf39493aff79815f Mon Sep 17 00:00:00 2001 From: Simon Gerber Date: Wed, 14 Apr 2010 14:02:38 +0200 Subject: [PATCH] Fixed parse_timezone to correctly calculate the offset in seconds. Signed-off-by: Jonas Fonseca --- tig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2