From ab06fc9f95ff2b927aa9f07c17a7238ce7f3fb6b Mon Sep 17 00:00:00 2001 From: Max Wash Date: Tue, 10 May 2022 20:50:16 +0100 Subject: [PATCH] Fixed gmtime() returning absolute year values --- photon/libc/time/gmtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;