Re: timestamps cannot be created without time zones

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Rainer Mager <rmager(at)vgkk(dot)com>, <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: timestamps cannot be created without time zones
Date: 2001-08-24 15:47:06
Message-ID: Pine.LNX.4.30.0108241744180.677-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Bruce Momjian writes:

> Let me see if I follow here. If I am in the Eastern timezone and enter
> a time for 9pm, 1/1/1850, and someone else in the Central timezone
> enters the same time, if I look at the two dates from the Eastern
> timezone I will see mine as 9pm and the other as 10pm?

That's exactly what happens, only that the central time would probably
show 8pm.

> Wow, I wonder if that is bad?

Depends on the application. I do wonder how the backend gets to know the
time zone from the front end. export PGTZ seems to do that, but not
export TZ, which is the standard variable.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2001-08-24 16:02:30 Re: Bug #424: JDBC driver security issue.
Previous Message Bruce Momjian 2001-08-24 14:55:17 Re: timestamps cannot be created without time zones