Change PostgreSQL timezone
Jul 2, 2025
Set timezone on database level
ALTER DATABASE <your_database_name> SET timezone = 'UTC';Get bugscoder’s stories in your inbox
Join Medium for free to get updates from this writer.
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;



