[STM32L4XX] Init daylight saving time

pull/1853/head
svastm 2016-06-03 15:34:00 +02:00
parent a29e15e07c
commit 32bca79452
1 changed files with 2 additions and 0 deletions

View File

@ -195,6 +195,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);