Re: displaying UTC time in local time - Mailing list pgsql-admin

From mark_postgres_user
Subject Re: displaying UTC time in local time
Date
Msg-id 1383055558685-5776257.post@n5.nabble.com
Whole thread Raw
In response to Re: displaying UTC time in local time  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: displaying UTC time in local time  (Scott Ribe <scott_ribe@elevated-dev.com>)
Re: displaying UTC time in local time  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-admin
> 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.


pgsql-admin by date:

Previous
From: Paul Warren
Date:
Subject: Re: pg_dump being killed by oom killer
Next
From: Scott Ribe
Date:
Subject: Re: displaying UTC time in local time