]> granicus.if.org Git - postgresql/commit
Fix bogus logic for zic -P option.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 3 Oct 2014 18:48:11 +0000 (14:48 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 3 Oct 2014 18:48:24 +0000 (14:48 -0400)
commit03163139c9553c6ee4c26a73e21aaef5da22be45
treebab79dcc622f1abff8f3dab50aaeed8d12882cd1
parent23a8cae6bcdadb1569336cf911cbeb772fda099b
Fix bogus logic for zic -P option.

The quick hack I added to zic to dump out currently-in-use timezone
abbreviations turns out to have a nasty bug: within each zone, it was
printing the last "struct ttinfo" to be *defined*, not necessarily the
last one in use.  This was mainly a problem in zones that had changed the
meaning of their zone abbreviation (to another GMT offset value) and later
changed it back.

As a result of this error, we'd missed out updating the tznames/ files
for some jurisdictions that have changed their zone abbreviations since
the tznames/ files were originally created.  I'll address the missing data
updates in a separate commit.
src/timezone/zic.c