Michael G Schwern via RT wrote:
Show quoted text>Attached. Its from OS X 10.6.2.
It's a version-1 tzfile. This format has no facility to give a rule for
DST changes beyond those explicitly listed, and its times are limited to
32 bits so it can't represent any changes beyond 2038. It is arguable
that DT:TZ:Tzfile should have refused to give any offset for the year
3000, but that behaviour would screw up interpretation of some other
perfectly good version-1 tzfiles. Generally the tzfile format is not
very clear about edge behaviour. I'm intending to review DT:TZ:Tzfile's
handling of edge cases, btw.
In a version-2 tzfile, times are 64-bit, and future dates can be covered
by a rule expressed in System V $TZ format (as I just described on
the datetime list). Attached is the v2 America/Chicago from my Debian
machine, where your test script produces correct output (is_dst=1 in
both cases).
So, basically, not a bug. As I suggested on the datetime list, a Perl
module to provide access to current tzfiles would be nice, as something
to combine with DT:TZ:Tzfile.
-zefram