mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 04:15:23 +03:00
Kernel: Don't assert if RTC believes we're in the past
This commit is contained in:
parent
4d5496b2b2
commit
eedb6480df
Notes:
sideshowbarker
2024-07-18 22:25:46 +09:00
Author: https://github.com/boricj Commit: https://github.com/SerenityOS/serenity/commit/eedb6480dfd Pull-request: https://github.com/SerenityOS/serenity/pull/5293
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user