]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix identify_system_timezone() so that it tests the behavior of the system
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 1 Jul 2008 03:41:10 +0000 (03:41 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 1 Jul 2008 03:41:10 +0000 (03:41 +0000)
commit0c27e5857cabde3176b18f77d416cdf6cd36bc45
tree8c0ef6058ab0602eba2b2b5d774db15acf1a1809
parentfeeac41bc6d63b5929af82d4ebbb7c10f3648ac0
Fix identify_system_timezone() so that it tests the behavior of the system
timezone setting in the current year and for 100 years back, rather than
always examining years 1904-2004.  The original coding would have problems
distinguishing zones whose behavior diverged only after 2004; which is a
situation we will surely face sometime, if it's not out there already.

In passing, also prevent selection of the dummy "Factory" timezone, even
if that's exactly what the system is using.  Reporting time as GMT seems
better than that.
src/timezone/pgtz.c