libc: fix mktime

This commit is contained in:
K. Lange 2019-01-12 20:44:25 +09:00
parent 6748a76146
commit 059a2dbbd8

View File

@ -129,7 +129,6 @@ struct tm *localtime_r(const time_t *timep, struct tm * _timevalue) {
static unsigned int secs_of_years(int years) { static unsigned int secs_of_years(int years) {
unsigned int days = 0; unsigned int days = 0;
years += 2000;
while (years > 1969) { while (years > 1969) {
days += 365; days += 365;
if (year_is_leap(years)) { if (year_is_leap(years)) {