Fix identify_system_timezone() so that it tests the behavior of the system

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 8c3340fe166fba79aeb5a51dffa951bbf63d9af4
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-07-01T03:40:55Z
Releases: 8.4.0
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.

Files

PathChange+/−
src/timezone/pgtz.c modified +38 −9