From 6d684ee7483e97667406c7de83a36d6448bb48c3 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Fri, 7 Aug 2020 13:24:58 +0200 Subject: [PATCH] cpu/lpc23xx: use RIOT_EPOCH --- cpu/lpc23xx/periph/rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/lpc23xx/periph/rtc.c b/cpu/lpc23xx/periph/rtc.c index 15d3fc6b04..0820ada8b3 100644 --- a/cpu/lpc23xx/periph/rtc.c +++ b/cpu/lpc23xx/periph/rtc.c @@ -57,7 +57,7 @@ void rtc_init(void) * after cold boot or external reset. */ 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); }