Re: timezone offsets and documentation
От | Tom Lane |
---|---|
Тема | Re: timezone offsets and documentation |
Дата | |
Msg-id | 3087.1130009241@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | timezone offsets and documentation (Kris Jurka <books@ejurka.com>) |
Список | pgsql-bugs |
Quite some time ago, Kris Jurka <books@ejurka.com> wrote: > This allows: > jurka=# set timezone to 'Etc/GMT-14'; > SET > jurka=# select '00:00:00'::timetz; > timetz > ------------- > 00:00:00+14 > (1 row) > but this is not an allowed value: > jurka=# select '00:00:00+14'::timetz; > ERROR: time zone displacement out of range: "00:00:00+14" Yeah. It's worse than that actually, because we will take something like SET TIMEZONE TO 'Etc/GMT+15'; I haven't traced through the code but I bet this is being accepted by the "POSIX zone name" rule. Perhaps we should sanity-check the computed offset? I'm not sure what the use of GMT-14 is, but I suggest that we ought to defer to the judgment of the zic people in making it available. Accordingly, we probably ought to modify the range of allowed timezone offsets to allow -14:00 (and maybe +14:00 as well?) Comments? regards, tom lane
В списке pgsql-bugs по дате отправления: