diff options
Diffstat (limited to 'libc/time.c')
-rw-r--r-- | libc/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/time.c b/libc/time.c index 6a51086..71bbdff 100644 --- a/libc/time.c +++ b/libc/time.c @@ -121,7 +121,7 @@ time_t mktime(struct tm *tm) for (d = days_in_month(month, year); mday > d; d = days_in_month(month, year)) { month++; - if (month > 12) { + if (month > 11) { month = 0; year++; } |