From 296441445068762a138b31eb20433d2cd9d17d4b Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 4 Jul 2018 15:16:54 +0200 Subject: [PATCH] Localtime: fix comment about leap year. --- src/localtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/localtime.c b/src/localtime.c index 2021325b..8c1ff495 100644 --- a/src/localtime.c +++ b/src/localtime.c @@ -79,7 +79,7 @@ void nolocks_localtime(struct tm *tmp, time_t t, time_t tz, int dst) { /* Calculate the current year. */ tmp->tm_year = 1970; while(1) { - /* Leap years have one year more. */ + /* Leap years have one day more. */ time_t days_this_year = 365 + is_leap_year(tmp->tm_year); if (days_this_year > days) break; days -= days_this_year;