<div dir="ltr"><div><div><div><div><div><div><div>I'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"><<a href="mailto:alan@prettyrobots.com" target="_blank">alan@prettyrobots.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm compiling the TZ database using the using the `zic` from the source<br>
distributed with the database checked out from GitHub. I'm using the commit that<br>
relates to the `tz2013c` release. I'm not able to get an Australian EST timezone<br>
offset for dates before October 1916 for Antarctica/Macquarie.<br>
<br>
I'm using both Ruby 1.9.3p392 and GNU date 8.15.<br>
<br>
When I compile the TZ database at commit 188b29d966; "Fix times of habitation<br>
for Macquarie to agree with Tasmania history" I get the unhabited offset and<br>
abbreviation.<br>
<br>
% TZ="$PWD/build/zoneinfo/<u></u>Antarctica/Macquarie" date -d "1916/09/30 16:00 UTC"<br>
Sun Oct  1 03:00:00 EST 1916<br>
% TZ="$PWD/build/zoneinfo/<u></u>Antarctica/Macquarie" date -d "1916/09/30 15:59 UTC"<br>
Sat Sep 30 15:59:00 zzz 1916<br>
<br>
When I compile the TZ database at commit a676f5ad3b; "Macquarie Island is<br>
politically part of Australia, not Antarctica" I get the correct offset and<br>
abbreviation.<br>
<br>
% TZ="$PWD/build/zoneinfo/<u></u>Antarctica/Macquarie" date -d "1916/09/30 16:00 UTC"<br>
Sun Oct  1 03:00:00 EST 1916<br>
% TZ="$PWD/build/zoneinfo/<u></u>Antarctica/Macquarie" date -d "1916/09/30 15:59 UTC"<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 "1899<br>
Nov" back to "1911", 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'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>