From 059a2dbbd83a85f3229d1ab277b28eceffc960bd Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Sat, 12 Jan 2019 20:44:25 +0900 Subject: [PATCH] libc: fix mktime --- libc/time/localtime.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libc/time/localtime.c b/libc/time/localtime.c index f99e145f..f0d52177 100644 --- a/libc/time/localtime.c +++ b/libc/time/localtime.c @@ -129,7 +129,6 @@ struct tm *localtime_r(const time_t *timep, struct tm * _timevalue) { static unsigned int secs_of_years(int years) { unsigned int days = 0; - years += 2000; while (years > 1969) { days += 365; if (year_is_leap(years)) {