]> granicus.if.org Git - postgresql/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:18 +0000 (03:41 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 1 Jul 2008 03:41:18 +0000 (03:41 +0000)
commit4d725798810b4390d1855f5aa7ff1e2a633a73ee
treefef5cd571e42846bd7725a797f4224e56b6de846
parent289654cd321d83057344df93d54028b0f9fbb271
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