M
А как Вы хотели? Клиент-то выполняется вообще не на сервере PostgreSQL, и не имеет к нему непосредственного отношения.
Более того, он сам должен знать, какая time zone ему нужна (если это "мой" клиент, к примеру, мне нужна Europe/Moscow; а кому-то ещё, может, Europe/Kiev и так далее).
> А так бы библиотека клиенты сама ставила зону и вуаля …
Магия? ;)
If
timezone
is not specified in postgresql.conf
or as a server command-line option, the server attempts to use the value of the TZ
environment variable as the default time zone. If TZ
is not defined or is not any of the time zone names known to PostgreSQL, the server attempts to determine the operating system's default time zone by checking the behavior of the C library function localtime()
. The default time zone is selected as the closest match among PostgreSQL's known time zones. (These rules are also used to choose the default value of log_timezonelog_timezone, if not specified.)