pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Edipo E. F. Melo <edipoelder@ig.com.br>
To: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: Date problem
Date: Fri, 06 Oct 2000 23:56:12 -0300 (ADT)
Message-ID: <200010071223.e97CNkJ10864@hub.org> (raw)
In-Reply-To: <17093.970235907@sss.pgh.pa.us>

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




view thread (10+ messages)  latest in thread

Message-ID: <200010071223.e97CNkJ10864@hub.org>
Permalink:  ../200010071223.e97CNkJ10864@hub.org/
Also on:    postgresql.org/message-id/200010071223.e97CNkJ10864@hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: edipoelder@ig.com.br
  Subject: Re: Date problem
  In-Reply-To: <200010071223.e97CNkJ10864@hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox