]> granicus.if.org Git - postgresql/commit
Fix code to check legal dates *before* calling localtime() to get the
authorThomas G. Lockhart <lockhart@fourpalms.org>
Thu, 15 Apr 1999 02:22:39 +0000 (02:22 +0000)
committerThomas G. Lockhart <lockhart@fourpalms.org>
Thu, 15 Apr 1999 02:22:39 +0000 (02:22 +0000)
commitb2b3d5d184455acdc3cd91d083a0d2403af6c847
tree7a375bff9550c579966cd417f82cd902f4a7b27d
parent64e74e30b51ba626edf4cd0147a3ff7f98469e69
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.
src/backend/utils/adt/datetime.c
src/backend/utils/adt/dt.c