mirror of https://github.com/ARMmbed/mbed-os.git
[STM32L1XX] Init daylight saving time
parent
b6fe6638f1
commit
84e65c7ee3
|
@ -193,6 +193,8 @@ time_t rtc_read(void)
|
|||
timeinfo.tm_hour = timeStruct.Hours;
|
||||
timeinfo.tm_min = timeStruct.Minutes;
|
||||
timeinfo.tm_sec = timeStruct.Seconds;
|
||||
// Daylight Saving Time information is not available
|
||||
timeinfo.tm_isdst = -1;
|
||||
|
||||
// Convert to timestamp
|
||||
time_t t = mktime(&timeinfo);
|
||||
|
|
Loading…
Reference in New Issue