Fix code to check legal dates *before* calling localtime() to get the

Thomas G. Lockhart <lockhart@fourpalms.org>

Commit: b2b3d5d184455acdc3cd91d083a0d2403af6c847
Author: Thomas G. Lockhart <lockhart@fourpalms.org>
Date: 1999-04-15T02:22:39Z
Releases: 7.1.1
Fix code to check legal dates *before* calling localtime() to get the
 time zone.
Previously, localtime() rotated a date with a day of month field which
 exceeded the actual range into the next months, masking the fact that
 a bad date had been specified.
Regression tests pass.

Files

PathChange+/−
src/backend/utils/adt/datetime.c modified +3 −33
src/backend/utils/adt/dt.c modified +40 −90