Fix to_date() and to_timestamp() to allow specification of the day of
Bruce Momjian <bruce@momjian.us>
Fix to_date() and to_timestamp() to allow specification of the day of the week via ISO or Gregorian designations. The fix is to store the day-of-week consistently as 1-7, Sunday = 1. Fixes bug reported by Marc Munro
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/formatting.c | modified | +7 −3 |
| src/backend/utils/adt/timestamp.c | modified | +8 −4 |
| src/include/utils/timestamp.h | modified | +1 −1 |