Skip to content

Commit 7f88761

Browse files
author
Jerome COUTANT
committed
[STM32F0] Init daylight saving time
1 parent f327de0 commit 7f88761

File tree

1 file changed

+1
-0
lines changed
  • hal/targets/hal/TARGET_STM/TARGET_STM32F0

1 file changed

+1
-0
lines changed

hal/targets/hal/TARGET_STM/TARGET_STM32F0/rtc_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ time_t rtc_read(void) {
181181
timeinfo.tm_hour = timeStruct.Hours;
182182
timeinfo.tm_min = timeStruct.Minutes;
183183
timeinfo.tm_sec = timeStruct.Seconds;
184+
timeinfo.tm_isdst = -1;
184185

185186
// Convert to timestamp
186187
time_t t = mktime(&timeinfo);

0 commit comments

Comments
 (0)