From 9cd29fa47f4d4c1de5444e122d03abea26774c83 Mon Sep 17 00:00:00 2001 From: Vreixo Formoso Date: Mon, 21 Jan 2008 21:07:02 +0100 Subject: [PATCH] Fix little bug related with timezone handling. --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.c b/src/util.c index e7efd02..0eeaede 100644 --- a/src/util.c +++ b/src/util.c @@ -1039,7 +1039,7 @@ time_t iso_datetime_read_7(const uint8_t *buf) tm.tm_hour = buf[3]; tm.tm_min = buf[4]; tm.tm_sec = buf[5]; - return timegm(&tm) - buf[6] * 60 * 15; + return timegm(&tm) - ((int8_t)buf[6]) * 60 * 15; } time_t iso_datetime_read_17(const uint8_t *buf)