Fixed gmtime() returning absolute year values
This commit is contained in:
@@ -68,7 +68,7 @@ struct tm *gmtime(const time_t *timer)
|
|||||||
g_time_struct.tm_hour = hours;
|
g_time_struct.tm_hour = hours;
|
||||||
g_time_struct.tm_mday = days + 1;
|
g_time_struct.tm_mday = days + 1;
|
||||||
g_time_struct.tm_mon = month;
|
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;
|
g_time_struct.tm_wday = day_of_week;
|
||||||
|
|
||||||
return &g_time_struct;
|
return &g_time_struct;
|
||||||
|
|||||||
Reference in New Issue
Block a user