Change comparisons of tm->tm_isdst from "nonzero" to "greater than zero".
authorThomas G. Lockhart <lockhart@alumni.caltech.edu>
Wed, 17 Jan 2001 16:46:56 +0000 (16:46 +0000)
committerThomas G. Lockhart <lockhart@alumni.caltech.edu>
Wed, 17 Jan 2001 16:46:56 +0000 (16:46 +0000)
commit6d09adcffafdf0a0e371b9e3666675c7fe9fc23e
tree9c8934c87053b358f0cb584554e5cbf57bc2f5ae
parent38c6bca33141b681c0a1918ddf22a51b4f808570
Change comparisons of tm->tm_isdst from "nonzero" to "greater than zero".
 Not sure why some were this way, and others were already correct, but it
 seems to have been like this for several years.
This caused problems on a few damaged platforms like AIX and IRIX which do
 not support DST calculations for years before 1970.
Thanks to Andreas Zeugswetter <ZeugswetterA@wien.spardat.at> for finding
 the problem.
src/backend/utils/adt/datetime.c
src/backend/utils/adt/formatting.c
src/backend/utils/adt/nabstime.c
src/backend/utils/adt/timestamp.c