Bradley White wrote:
One solution would be to trim trailing, no-op transitions from the end of
the zic transitions before adding the rule-generated ones. The reference
implementation doesn't need them.
Thanks for catching that bug. The attached patch takes your suggestion for localtime.c. It also attempts to fix zic.c to not generate the incorrect transition in Pacific/Tongatapu in January 2038. Either part of the patch should suffice to fix the bug.