diff --git a/photon/libc/time/gmtime.c b/photon/libc/time/gmtime.c index 002230a..e563c94 100644 --- a/photon/libc/time/gmtime.c +++ b/photon/libc/time/gmtime.c @@ -68,7 +68,7 @@ struct tm *gmtime(const time_t *timer) g_time_struct.tm_hour = hours; g_time_struct.tm_mday = days + 1; g_time_struct.tm_mon = month; - g_time_struct.tm_year = year; + g_time_struct.tm_year = year - 1900; g_time_struct.tm_wday = day_of_week; return &g_time_struct;