File tree Expand file tree Collapse file tree 4 files changed +6
-0
lines changed
hal/targets/hal/TARGET_STM Expand file tree Collapse file tree 4 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,8 @@ time_t rtc_read(void)
163
163
timeinfo .tm_hour = timeStruct .Hours ;
164
164
timeinfo .tm_min = timeStruct .Minutes ;
165
165
timeinfo .tm_sec = timeStruct .Seconds ;
166
+ // Daylight Saving Time information is not available
167
+ timeinfo .tm_isdst = -1 ;
166
168
167
169
// Convert to timestamp
168
170
time_t t = mktime (& timeinfo );
Original file line number Diff line number Diff line change @@ -182,6 +182,8 @@ time_t rtc_read(void)
182
182
timeinfo .tm_hour = timeStruct .Hours ;
183
183
timeinfo .tm_min = timeStruct .Minutes ;
184
184
timeinfo .tm_sec = timeStruct .Seconds ;
185
+ // Daylight Saving Time information is not available
186
+ timeinfo .tm_isdst = -1 ;
185
187
186
188
// Convert to timestamp
187
189
time_t t = mktime (& timeinfo );
Original file line number Diff line number Diff line change @@ -182,6 +182,7 @@ time_t rtc_read(void)
182
182
timeinfo .tm_hour = timeStruct .Hours ;
183
183
timeinfo .tm_min = timeStruct .Minutes ;
184
184
timeinfo .tm_sec = timeStruct .Seconds ;
185
+ // Daylight Saving Time information is not available
185
186
timeinfo .tm_isdst = -1 ;
186
187
187
188
// Convert to timestamp
Original file line number Diff line number Diff line change @@ -182,6 +182,7 @@ time_t rtc_read(void)
182
182
timeinfo .tm_hour = timeStruct .Hours ;
183
183
timeinfo .tm_min = timeStruct .Minutes ;
184
184
timeinfo .tm_sec = timeStruct .Seconds ;
185
+ // Daylight Saving Time information is not available
185
186
timeinfo .tm_isdst = -1 ;
186
187
187
188
// Convert to timestamp
You can’t perform that action at this time.
0 commit comments