Kernel: Don't assert if RTC believes we're in the past

This commit is contained in:
Jean-Baptiste Boric 2021-02-11 19:19:03 +01:00 committed by Andreas Kling
parent 4d5496b2b2
commit eedb6480df
Notes: sideshowbarker 2024-07-18 22:25:46 +09:00

View File

@ -102,8 +102,6 @@ time_t now()
klog() << "RTC: Year: " << year << ", month: " << month << ", day: " << day << ", hour: " << hour << ", minute: " << minute << ", second: " << second;
ASSERT(year >= 2018);
time_t days_since_epoch = years_to_days_since_epoch(year) + day_of_year(year, month, day);
return ((days_since_epoch * 24 + hour) * 60 + minute) * 60 + second;
}