From fad69464f6b6f54561bd6eaa5382e5e1f564dc5c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 19 Feb 2019 02:39:18 +0100 Subject: [PATCH] Kernel: Fix wrong calculation of current Unix timestamp. --- Kernel/RTC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/RTC.cpp b/Kernel/RTC.cpp index acb6186d40..ab004446bd 100644 --- a/Kernel/RTC.cpp +++ b/Kernel/RTC.cpp @@ -92,7 +92,7 @@ time_t now() return days_in_years_since_epoch(year - 1) * 86400 + days_in_months_since_start_of_year(month - 1, year) * 86400 - + day * 86400 + + (day - 1) * 86400 + hour * 3600 + minute * 60 + second;