]> granicus.if.org Git - postgresql/commit
Consolidate several near-identical uses of mktime() into a single
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 3 May 2001 22:53:07 +0000 (22:53 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 3 May 2001 22:53:07 +0000 (22:53 +0000)
commitf5ba72ea04e71a127031a4436781943008abfa7a
tree0da4f624a81d6f9d241a0e88fb4bc96fd9b46f2c
parent0cec2bb0cd2ea1a19d2ad58107b04226de401d44
Consolidate several near-identical uses of mktime() into a single
routine DetermineLocalTimeZone().  In that routine, be more wary of
broken mktime() implementations than the original code was: don't allow
mktime to change the already-set y/m/d/h/m/s information, and don't
use tm_gmtoff if mktime failed.  Possibly this will resolve some of
the complaints we've been hearing from users of Middle Eastern timezones
on RedHat.
src/backend/utils/adt/datetime.c
src/backend/utils/adt/formatting.c
src/backend/utils/adt/timestamp.c
src/include/utils/datetime.h