mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +00:00
Kernel: Fix wrong calculation of current Unix timestamp.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user