Sitemap

Change PostgreSQL timezone

Jul 2, 2025

--

Set timezone on database level

Get bugscoder’s stories in your inbox

Join Medium for free to get updates from this writer.

ALTER DATABASE <your_database_name> SET timezone = 'UTC';

Set timezone on global level

-- This modifies postgresql.auto.conf
ALTER SYSTEM SET timezone = 'UTC';

-- Reload configuration (no restart needed)
SELECT pg_reload_conf();

-- Verify it worked
SHOW timezone;

--

--