Re: now() and time zone - Mailing list pgsql-general

From Tom Lane
Subject Re: now() and time zone
Date
Msg-id 21754.1159996181@sss.pgh.pa.us
Whole thread Raw
In response to now() and time zone  (Jean-Christophe Roux <jcxxr@yahoo.com>)
List pgsql-general
Jean-Christophe Roux <jcxxr@yahoo.com> writes:
> I am a bit sorry to come back on that topic but I just cannot get it right. How comes that
>     select now() at time zone 'EST'
> returns
>     "2006-10-04 15:59:26.713623"
> when it is actually 16:59 on the east coast?

USA east coast is currently on EDT ... not EST.

In PG 8.1 and later you can say AT TIME ZONE 'EST5EDT' or
AT TIME ZONE 'America/New_York' to get the behavior I think you are
after.

            regards, tom lane

pgsql-general by date:

Previous
From: Jean-Christophe Roux
Date:
Subject: Re: now() and time zone
Next
From: Jeff Davis
Date:
Subject: Re: Run programs within the bin folder