Re: Timestamp <-> ctime conversion question ...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
Cc: Alex Mayrhofer <axelm-postgis(at)nona(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: Timestamp <-> ctime conversion question ...
Date: 2005-12-16 00:06:34
Message-ID: 18398.1134691594@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Jim C. Nasby" <jnasby(at)pervasive(dot)com> writes:
> That said, you need to be careful about testing this using psql. I
> believe psql is what's converting the timestamp to your local timezone.

Certainly not; psql doesn't even know what a timestamp is. If you get
different results in a different client interface, it could only be
because the interface code fools with the TimeZone (and/or DateStyle)
parameter settings. This is not out of the question --- I think JDBC
tries to force TimeZone to UTC, for instance.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-12-16 03:12:48 Re: outdated (bad) information in pg_stat_activity
Previous Message Tom Lane 2005-12-15 23:55:45 Re: is this a bug or I am blind?