Fix little bug related with timezone handling.
This commit is contained in:
parent
4a62d80a7e
commit
9cd29fa47f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user