fix year calculation in gmtime

Change-Id: I9a5f29ad73b5620096d38874c70351db9bd90062
This commit is contained in:
Bertrik Sikken 2012-03-12 08:50:10 +01:00
parent 01397c4ff1
commit 16a95618de
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ struct tm *gmtime_r(const time_t *timep, struct tm *tm)
seconds -= YEAR_SECONDS;
}
}
tm->tm_year = year%100 + 100;
tm->tm_year = year - 1900;
/* Month */
for (i = 0; i < 12; i++)