1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +01:00

sys/cbor: set isdst to undefined after strptime

CBOR does not specify the daylight saving time adjustment.
This commit is contained in:
Ludwig Ortmann 2014-08-27 09:53:51 +02:00
parent 6fb97585fd
commit 58a41d2ff2

View File

@ -694,6 +694,8 @@ size_t cbor_deserialize_date_time(const cbor_stream_t *stream, size_t offset, st
return 0;
}
val->tm_isdst = -1; /* not set by strptime(), undefined in CBOR */
if (mktime(val) == -1) {
return 0;
}