<div dir="ltr">Hi Paul,<div>Fix works for issues I've mentioned.</div><div>However, I think overflow happens somewhere. </div><div>Please see the attached code.</div><div>I've run it in the same way as in the first message.</div><div><br></div><div>On my workstation it prints following:</div><div>sizeof time_t: 8<br>2120284800<br>-1<br>-218154496<br>-1<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 20 Feb 2022 at 21:32, Paul Eggert <<a href="mailto:eggert@cs.ucla.edu">eggert@cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2/17/22 05:09, Almaz Mingaleev via tz wrote:<br>
<br>
> With a truncated TZif file it prints 331344000. With non-truncated one it<br>
> prints 331372800.<br>
> The latter is the right answer.<br>
<br>
Thanks for reporting that. I installed the attached proposed patches; <br>
the first should fix it and the second updates a related comment.<br>
<br>
This seems to be my weekend for fixing mktime bugs, as I fixed one in <br>
glibc yesterday involving time in Indiana <<a href="https://bugs.gnu.org/48085" rel="noreferrer" target="_blank">https://bugs.gnu.org/48085</a>>.</blockquote></div>