<div dir="ltr"><div><div><div><div><div><div><div>I&#39;ve duplicated the problem. Real fixing involves zic.c (to change the output produced for Macquarie) and to localtime.c (to correctly handle existing binary files).<br>
<br></div>A workaround is to change the Macquarie line that reads...<br></div>    10:00 Aus EST 1919 Apr<br></div>...to read...<br></div>    10:00 Aus EST 1919 Apr 1 0:00s<br></div>...and this change should probably be made to australasia for the benefit of folks who pick up the data files but not the code files.<br>
</div>(There might also be a comment about it being a workaround.)<br><br></div>    --ado<br><div><div><div><div><div><div><br></div></div></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, May 22, 2013 at 10:21 PM, Alan Gutierrez <span dir="ltr">&lt;<a href="mailto:alan@prettyrobots.com" target="_blank">alan@prettyrobots.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I&#39;m compiling the TZ database using the using the `zic` from the source<br>
distributed with the database checked out from GitHub. I&#39;m using the commit that<br>
relates to the `tz2013c` release. I&#39;m not able to get an Australian EST timezone<br>
offset for dates before October 1916 for Antarctica/Macquarie.<br>
<br>
I&#39;m using both Ruby 1.9.3p392 and GNU date 8.15.<br>
<br>
When I compile the TZ database at commit 188b29d966; &quot;Fix times of habitation<br>
for Macquarie to agree with Tasmania history&quot; I get the unhabited offset and<br>
abbreviation.<br>
<br>
% TZ=&quot;$PWD/build/zoneinfo/<u></u>Antarctica/Macquarie&quot; date -d &quot;1916/09/30 16:00 UTC&quot;<br>
Sun Oct  1 03:00:00 EST 1916<br>
% TZ=&quot;$PWD/build/zoneinfo/<u></u>Antarctica/Macquarie&quot; date -d &quot;1916/09/30 15:59 UTC&quot;<br>
Sat Sep 30 15:59:00 zzz 1916<br>
<br>
When I compile the TZ database at commit a676f5ad3b; &quot;Macquarie Island is<br>
politically part of Australia, not Antarctica&quot; I get the correct offset and<br>
abbreviation.<br>
<br>
% TZ=&quot;$PWD/build/zoneinfo/<u></u>Antarctica/Macquarie&quot; date -d &quot;1916/09/30 16:00 UTC&quot;<br>
Sun Oct  1 03:00:00 EST 1916<br>
% TZ=&quot;$PWD/build/zoneinfo/<u></u>Antarctica/Macquarie&quot; date -d &quot;1916/09/30 15:59 UTC&quot;<br>
Sun Oct  1 01:59:00 EST 1916<br>
<br>
Using this commit, if I change the date of the first line of the Zone from &quot;1899<br>
Nov&quot; back to &quot;1911&quot;, it starts to work again. <br>
Here is the change set that causes the confusion.<br>
<br>
<a href="https://github.com/eggert/tz/commit/188b29d9664cfcf0384e515c69f94a2dfc27c673" target="_blank">https://github.com/eggert/tz/<u></u>commit/<u></u>188b29d9664cfcf0384e515c69f94a<u></u>2dfc27c673</a><br>
<br>
I am on a 32-bit system but in my experience, I&#39;m always able to get a correct<br>
timezone offset for dates in 1916 regardless of whether or not the zone begins<br>
before the range of a 32-bit POSIX time.<br>
<br>
--<br>
Alan Gutierrez ~ @bigeasy<br>
</blockquote></div><br></div>