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:
parent
6fb97585fd
commit
58a41d2ff2
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user