Re: timestamp with time zone output incorrect

From: Steve Martin <steve(dot)martin(at)nec(dot)co(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: timestamp with time zone output incorrect
Date: 2008-04-27 22:30:40
Message-ID: 4814FE90.3040802@nec.co.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:

>Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
>
>
>>On Thu, Apr 24, 2008 at 06:30:27PM +1200, Steve Martin wrote:
>>
>>
>>>=> show timezone ;
>>>TimeZone
>>>-------------
>>>NZST-12NZDT
>>>(1 row)
>>>
>>>
>
>
>
>>I have no idea what timezone that it. Presumably it switches between
>>daylight savings and non-daylight savings based on the US rules?
>>
>>
>
>Yeah, that's a POSIX zone spec. See
>
>http://www.postgresql.org/docs/8.3/static/datatype-datetime.html#DATATYPE-TIMEZONES
>
>As noted there, if the OP really really wants to spell his zone name
>that way, he could fool with the "posixrules" file in the timezone
>database. But Pacific/Auckland is probably better. (I don't remember
>whether 8.1 would honor changes in "posixrules".)
>
> regards, tom lane
>
>
>
Hi,

Thanks Martijn and Tom for your feedback.

Setting the timezone to Pacific/Auckland works.

Re-read the document reference Tom pointed to and found I missed the
comment about being wary of POSIX-style time zones.

Thanks
Steve Martin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Allison 2008-04-28 01:13:12 inheritance...
Previous Message Hannes Dorbath 2008-04-27 17:10:49 Re: taking actions on rollback (PHP)