summaryrefslogtreecommitdiff
path: root/firmware/libc
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/libc')
-rw-r--r--firmware/libc/gmtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/libc/gmtime.c b/firmware/libc/gmtime.c
index 89960ce..b6f75e2 100644
--- a/firmware/libc/gmtime.c
+++ b/firmware/libc/gmtime.c
@@ -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++)