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:25 +0000 (03:41 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 1 Jul 2008 03:41:25 +0000 (03:41 +0000)
commitd2279bb64b7000e7c96e3bc38cea3833fd4b2fad
tree2eab0604324ce5411274328188f7d8678445ef72
parent0a8c7d72da8174eeb290aa4ec009e736f73bab5a
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