From eedb6480dfdd3cb07c01155bed4e865b880f7a86 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Boric Date: Thu, 11 Feb 2021 19:19:03 +0100 Subject: [PATCH] Kernel: Don't assert if RTC believes we're in the past --- Kernel/RTC.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Kernel/RTC.cpp b/Kernel/RTC.cpp index 47e64ae5180..4d41e129fa0 100644 --- a/Kernel/RTC.cpp +++ b/Kernel/RTC.cpp @@ -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; }