我要获取当前时区名称。
我已经通过以下方式获得了 utc_offset/时区缩写:
SELECT * FROM pg_timezone_names WHERE abbrev = current_setting('TIMEZONE')
这给了我这个时区的所有大陆/资本组合,但不是准确的 timezone。例如:
Europe/Amsterdam
Europe/Berlin
The server is in Berlin and I want to get the timezone name of the server.
我与 CET的问题,它始终是 UTC+01:00,并没有考虑到 DST iirc。