mirror of https://github.com/ARMmbed/mbed-os.git
Add timeinfo.tm_isdst = -1 to pass MBED_16 test with IAR.
parent
703aee4f61
commit
53ff006f53
|
@ -182,6 +182,7 @@ time_t rtc_read(void)
|
|||
timeinfo.tm_hour = timeStruct.Hours;
|
||||
timeinfo.tm_min = timeStruct.Minutes;
|
||||
timeinfo.tm_sec = timeStruct.Seconds;
|
||||
timeinfo.tm_isdst = -1;
|
||||
|
||||
// Convert to timestamp
|
||||
time_t t = mktime(&timeinfo);
|
||||
|
|
Loading…
Reference in New Issue