Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vb9wD-0001oV-2D for pgsql-admin@arkaria.postgresql.org; Tue, 29 Oct 2013 14:06:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vb9wB-0002ir-KD for pgsql-admin@arkaria.postgresql.org; Tue, 29 Oct 2013 14:06:27 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vb9vn-0002AP-QM for pgsql-admin@postgresql.org; Tue, 29 Oct 2013 14:06:04 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vb9vj-00026C-Pc for pgsql-admin@postgresql.org; Tue, 29 Oct 2013 14:06:02 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Vb9vi-0001bd-MQ for pgsql-admin@postgresql.org; Tue, 29 Oct 2013 07:05:58 -0700 Date: Tue, 29 Oct 2013 07:05:58 -0700 (PDT) From: mark_postgres_user To: pgsql-admin@postgresql.org Message-ID: <1383055558685-5776257.post@n5.nabble.com> In-Reply-To: <13452.1383001151@sss.pgh.pa.us> References: <1382997116262-5776169.post@n5.nabble.com> <13452.1383001151@sss.pgh.pa.us> Subject: Re: displaying UTC time in local time MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 2.6 (++) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org > Those statements apply to values of type timestamp WITH timezone. > A timestamp WITHOUT timezone is just what-you-see-is-what-you-get. Thanks for this clarification. To recap: So, because my timestamps are defined as timestamp without timezone data type and are stored in UTC, when I display them in their default form they'll be displayed in UTC. I can use AT TIME ZONE to convert the displayed time to any timezone including my local timezone. So why is it that I can get the displayed time to be local only if I use "AT TIMEZONE 'UTC'" ? Anything else will either be ignored or display UTC. Is there a more intuitive way of getting these timestamps displayed in local time? P.S. Someone else owns the database I'm using so I can't change the timestamps to be timestamp with timezone. -- View this message in context: http://postgresql.1045698.n5.nabble.com/displaying-UTC-time-in-local-time-tp5776169p5776257.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin