summaryrefslogtreecommitdiffstats
path: root/firmware/drivers/rtc/rtc_s35380a.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/rtc/rtc_s35380a.c')
-rw-r--r--firmware/drivers/rtc/rtc_s35380a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/rtc/rtc_s35380a.c b/firmware/drivers/rtc/rtc_s35380a.c
index f32c431990..6deaed6354 100644
--- a/firmware/drivers/rtc/rtc_s35380a.c
+++ b/firmware/drivers/rtc/rtc_s35380a.c
@@ -192,9 +192,9 @@ int rtc_read_datetime(struct tm *tm)
tm->tm_mday = buf[TIME_DAY];
tm->tm_mon = buf[TIME_MONTH] - 1;
tm->tm_year = buf[TIME_YEAR] + 100;
- tm->tm_yday = 0; /* Not implemented for now */
set_day_of_week(tm);
+ set_day_of_year(tm);
return ret;
}