Andrew pointed out that the current fix didn't handle dates that were
Bruce Momjian <bruce@momjian.us>
Andrew pointed out that the current fix didn't handle dates that were
near daylight savings time boudaries. This handles it properly, e.g.
test=> select '2005-04-03 04:00:00'::timestamp at time zone
'America/Los_Angeles';
timezone
------------------------
2005-04-03 07:00:00-04
(1 row)
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/date.c | modified | +3 −3 |
| src/backend/utils/adt/datetime.c | modified | +8 −8 |
| src/backend/utils/adt/formatting.c | modified | +2 −2 |
| src/backend/utils/adt/nabstime.c | modified | +2 −2 |
| src/backend/utils/adt/timestamp.c | modified | +21 −18 |
| src/include/utils/datetime.h | modified | +2 −2 |