Fixed gmtime() returning absolute year values

This commit is contained in:
2022-05-10 20:50:16 +01:00
parent 270db317bc
commit ab06fc9f95

View File

@@ -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;