summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-19 02:39:18 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-19 02:39:18 +0100
commitfad69464f6b6f54561bd6eaa5382e5e1f564dc5c (patch)
tree432c089f0c420ba0ef41426d9ed3cdc0a4a3dfc4 /Kernel
parent9b71307d499924834d029adc91baf9689bfa49fd (diff)
downloadserenity-fad69464f6b6f54561bd6eaa5382e5e1f564dc5c.zip
Kernel: Fix wrong calculation of current Unix timestamp.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/RTC.cpp2
1 files changed, 1 insertions, 1 deletions
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;