[M2351] To fulfill _rtc_localtime one more argument

pull/7302/head
cyliangtw 2018-02-22 21:06:08 +08:00 committed by ccli8
parent 21de229047
commit 0c3f0f7cb7
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ void rtc_write(time_t t)
// Convert timestamp to struct tm // Convert timestamp to struct tm
struct tm timeinfo; struct tm timeinfo;
if (_rtc_localtime(t, &timeinfo) == false) { if (_rtc_localtime(t, &timeinfo,RTC_4_YEAR_LEAP_YEAR_SUPPORT) == false) {
return; return;
} }