mirror of https://github.com/ARMmbed/mbed-os.git
[M2351] To fulfill _rtc_localtime one more argument
parent
21de229047
commit
0c3f0f7cb7
|
@ -100,7 +100,7 @@ void rtc_write(time_t t)
|
|||
|
||||
// Convert timestamp to struct tm
|
||||
struct tm timeinfo;
|
||||
if (_rtc_localtime(t, &timeinfo) == false) {
|
||||
if (_rtc_localtime(t, &timeinfo,RTC_4_YEAR_LEAP_YEAR_SUPPORT) == false) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue