Add tm->yday to RTC ports missing it

Change-Id: I86882262bafb8d06f925aabb87ebd1b5dcb0cd53
This commit is contained in:
Moshe Piekarski 2021-05-05 12:52:19 -04:00 committed by Solomon Peachy
parent 3f26fcf340
commit b895fb6643
14 changed files with 30 additions and 12 deletions

View file

@ -45,9 +45,9 @@ int rtc_read_datetime(struct tm *tm)
tm->tm_mday = buf[4];
tm->tm_mon = buf[5] - 1;
tm->tm_year = buf[6] + 100;
tm->tm_yday = 0; /* Not implemented for now */
set_day_of_week(tm);
set_day_of_year(tm);
return 0;
}