Fix little bug related with timezone handling.

This commit is contained in:
Vreixo Formoso 2008-01-21 21:07:02 +01:00
parent 4a62d80a7e
commit 9cd29fa47f

View File

@ -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)