Thread: Re: Date problem

Re: Date problem

From
"Edipo E. F. Melo"
Date:
On Fri, 29 Sep 2000 09:58:27 -0400, Tom Lane wrote:
Returning from previous thread, i found a solution for my
problem: "when everything fails, read the manual..."Reading the OS/2 command reference, it says that TZ has three
parts: XXXCYYY. XXX - is the timezone name, C is the increment from UTC
time, and YYY is the name of summertime.Ommiting the name of summertime (TZ=AST4), pgsql returned the
correct select.

>>> Not sure how this would apply to 2000-01-01, though.  What timezone
>>> are you in, anyway?
>>     OS/2 sets TZ=AST4ADT (I live in Brazil, Natal city).
>
>Hm.  On a RedHat Linux box, with pgsql 7.0.2:
>
>regression=# show TimeZone ;
>NOTICE:  Time zone is AST4ADT
>SHOW VARIABLE
>regression=# select '2000-01-01'::date::timestamp;
>        ?column?        
>------------------------
> 2000-01-01 00:00:00-04

   []'s
   Edipo Elder F. de Melo