We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43bd57f commit 47741e2Copy full SHA for 47741e2
1 file changed
ports/rp2/datetime_patch.c
@@ -38,5 +38,5 @@ struct tm *localtime_r(const time_t *__restrict time, struct tm *__restrict loca
38
}
39
40
time_t mktime(struct tm *__restrict tm) {
41
- return timeutils_mktime(tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
+ return timeutils_mktime(tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
42
0 commit comments