Is the UTC timezone config in Postgres persistent?

So when doing show timezone; I get Etc/UTC.

Will this timezone be kept when the VM restarts?

I’ve been looking into the PG repo but I can’t seem to find a postgresql.conf or any timezone settings.

Of course I can set the timezone for the current session with set time zone 'UTC'; but AFAIK this is not persistent.

Edit:

As you can guess I’m not much of a PG expert.

I did ALTER DATABASE postgres SET TIMEZONE TO 'UTC'; which I’m hoping it’s going to set UTC as the default timezone persistently.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.