cpu/lpc23xx: use RIOT_EPOCH

This commit is contained in:
Benjamin Valentin 2020-08-07 13:24:58 +02:00
parent d02aa4a6b5
commit 6d684ee748

View File

@ -57,7 +57,7 @@ void rtc_init(void)
* after cold boot or external reset. * after cold boot or external reset.
*/ */
if ((RSIR == RSIR_POR) || (RSIR == (RSIR_POR | RSIR_EXTR))) { if ((RSIR == RSIR_POR) || (RSIR == (RSIR_POR | RSIR_EXTR))) {
struct tm localt = { .tm_year = 70 }; struct tm localt = { .tm_year = RIOT_EPOCH - 1900 };
rtc_set_time(&localt); rtc_set_time(&localt);
} }