mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 22:15:08 +00:00
Kernel: Don't assert if RTC believes we're in the past
This commit is contained in:
parent
4d5496b2b2
commit
eedb6480df
1 changed files with 0 additions and 2 deletions
|
@ -102,8 +102,6 @@ time_t now()
|
||||||
|
|
||||||
klog() << "RTC: Year: " << year << ", month: " << month << ", day: " << day << ", hour: " << hour << ", minute: " << minute << ", second: " << second;
|
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);
|
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;
|
return ((days_since_epoch * 24 + hour) * 60 + minute) * 60 + second;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue