aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/variable.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-09-06 11:29:52 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2021-09-06 11:29:52 -0400
commiteb3c8d24808a4d3ee8a257f4b856d5583b5cfdaa (patch)
treeff6314273c88d56b1569c33a77fb5d8e83b5f6f7 /src/backend/commands/variable.c
parent60bf7e69b07851d28e59d3c19fcbd6893866a519 (diff)
downloadpostgresql-eb3c8d24808a4d3ee8a257f4b856d5583b5cfdaa.tar.gz
postgresql-eb3c8d24808a4d3ee8a257f4b856d5583b5cfdaa.zip
Fix bogus timetz_zone() results for DYNTZ abbreviations.
timetz_zone() delivered completely wrong answers if the zone was specified by a dynamic TZ abbreviation, because it failed to account for the difference between the POSIX conventions for field values in struct pg_tm and the conventions used in PG-specific datetime code. As a stopgap fix, just adjust the tm_year and tm_mon fields to match PG conventions. This is fixed in a different way in HEAD (388e71af8) but I don't want to back-patch the change of reference point. Discussion: https://postgr.es/m/CAJ7c6TOMG8zSNEZtCn5SPe+cCk3Lfxb71ZaQwT2F4T7PJ_t=KA@mail.gmail.com
Diffstat (limited to 'src/backend/commands/variable.c')
0 files changed, 0 insertions, 0 deletions