[tz] [PROPOSED] Improve leapseconds support

Dennis Ferguson dennis.c.ferguson at gmail.com
Tue Sep 10 22:34:27 UTC 2019

> On Sep 10, 2019, at 21:41, Paul Eggert <eggert at cs.ucla.edu> wrote:
> Thanks. I revamped that quite a bit, to try to make it clearer and to match the existing tzdb style better, and installed the attached proposed patch into the development tzdb version on GitHub.

That looks very pretty to me, but I think there may be a typo in this bit of the patch:

    +  for (month = 0; month < 12; month++) {
    +    if (day < ss_mon_days[month])
    +      break
    +    day -= ss_mon_days[month]
    +  }

I think you probably want to stop at 11 rather than 12.

Dennis Ferguson

More information about the tz mailing list