diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c index ac484a4d11..e25c3ec2ce 100644 --- a/uisimulator/common/stubs.c +++ b/uisimulator/common/stubs.c @@ -124,6 +124,13 @@ void backlight_set_on_when_charging(bool beep) (void)beep; } +/* original is in firmware/common/timefuncs.c */ +struct tm *get_time(void) +{ + time_t now = time(NULL); + return localtime(&now); +} + int rtc_read(int address) { time_t now = time(NULL);