diff options
Diffstat (limited to 'core/time.c')
-rw-r--r-- | core/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/time.c b/core/time.c index 9992658b6..cbf7d2e2a 100644 --- a/core/time.c +++ b/core/time.c @@ -108,7 +108,7 @@ timestamp_t utc_mktime(struct tm *tm) /* First normalize relative to 1900 */ if (year < 50) year += 100; - else if (year > 1900) + else if (year >= 1900) year -= 1900; if (year < 0 || year > 129) /* algo only works for 1900-2099 */ |