Add code to test for unknown timezone names (following some ideas from
Tom Lane <tgl@sss.pgh.pa.us>
Add code to test for unknown timezone names (following some ideas from Ross Reedstrom, a couple months back) and to detect timezones that are using leap-second timekeeping. The unknown-zone-name test is pretty heuristic and ugly, but it seems better than the old behavior of just switching to GMT given a bad name. Also make DecodePosixTimezone() a tad more robust.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/variable.c | modified | +231 −29 |
| src/backend/utils/adt/datetime.c | modified | +31 −9 |
| src/include/utils/datetime.h | modified | +3 −1 |