
May 5, 2021
11:04 a.m.
On 5/5/21 6:23 AM, Manuela Friedrich wrote:
the new tracing seems to reveal a diff in the abbreviations.
Yes, that seems to be the problem. MS-Windows's struct tm does not have a tm_zone member; localtime merely puts time zone abbreviations into a global variable tzname, a la POSIX. On platforms lacking tm_zone, zdump's recently-changed code for remembering time zone abbreviations attempted to optimize localtime calls too aggressively and got the wrong abbreviation out of tzname. I installed the attached patch into the development repository. It fixes things on Ubuntu when I compile with -DNO_TM_ZONE, which is how I reproduced the bug (NO_TM_ZONE tells zdump to pretend there's no tm_zone member). Please give it a try.