Setting server timezone in YugabyteDB YSQL

60 Views Asked by At

[Question posted by a user on YugabyteDB Community Slack]

How do you permanently (not session level) set the timezone in YugabyteDB YSQL? Is this a G-flag or via ysql_pg_conf? Can you give an example? Thanks.

1

There are 1 best solutions below

0
On BEST ANSWER

You have to set the --ysql_timezone gflag in yb-tserver: https://docs.yugabyte.com/latest/reference/configuration/yb-tserver/#ysql-timezone