diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-19 02:39:18 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-19 02:39:18 +0100 |
commit | fad69464f6b6f54561bd6eaa5382e5e1f564dc5c (patch) | |
tree | 432c089f0c420ba0ef41426d9ed3cdc0a4a3dfc4 /Kernel | |
parent | 9b71307d499924834d029adc91baf9689bfa49fd (diff) | |
download | serenity-fad69464f6b6f54561bd6eaa5382e5e1f564dc5c.zip |
Kernel: Fix wrong calculation of current Unix timestamp.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/RTC.cpp | 2 |
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; |