Updating timezone setting - Mailing list pgsql-general

From Keith Fiske
Subject Updating timezone setting
Date
Msg-id CAG1_KcAs+_PofD7uSEg5-5oRrCB_ngmxDEyTWtxWfMcmS4pQBg@mail.gmail.com
Whole thread Raw
Responses Re: Updating timezone setting
List pgsql-general
Discovered that a client of ours had assumed their database was running in UTC, but turned out to be running in 'US/Eastern'. They had changed all their systems a while ago to run in UTC but didn't realize the database was independent of that. The postgresql.conf has

timezone = 'US/Eastern'

set in it. It also looks like they have all their timestamp columns set to "timestamp without time zone". But their application has been running in UTC, so the times being inserted are the time in UTC. So when queries are run locally in pql, they appear to be ahead of now(), which would be expected.

They'd like to get this fix, at least so that the database is running in UTC. Is there any issue with just changing the postgresql.conf timezone to GMT and restarting? All of their applications are inserting time in UTC anyway, and have been for as long as they can remember.

Would there be any issues then just leaving the columns as "timestamp without time zone"? I know that's not ideal, but that would be a big project to try and convert every single one of those columns.

Thanks,

--
Keith Fiske
Database Administrator
OmniTI Computer Consulting, Inc.
http://www.keithf4.com

pgsql-general by date:

Previous
From: David G Johnston
Date:
Subject: Re: SSL Certificates in Postgres 9.3 and Windows 7
Next
From: Vinay Gupta
Date:
Subject: Concat bigint Array Values in a Function