Retrieve the server's time zone

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Retrieve the server's time zone
Date: 2017-11-14 09:58:23
Message-ID: oueeno$619$1@blaine.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

is there any way (short of writing a function in an untrusted PL) to determine the actual time zone (or time) of the server OS?

"show timezone" always returns the client's time zone.

localtimestamp also converts the server's time to the client time zone (the one defined by "timezone")

log_timezone is also unreliable as it can be changed to anything.

I am looking for something along the lines of: "show server_timezone" or "select current_timestamp at time zone server_timezone"

Is that possible?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Durumdara 2017-11-14 11:09:31 Connection loosing at some places - caused by firewall
Previous Message Eric D 2017-11-14 03:41:35 Re: archive_command not being executed