Re: Bug in JDBC-Driver?

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Bug in JDBC-Driver?
Дата
Msg-id Pine.BSO.4.56.0412180256200.8824@leary.csoft.net
обсуждение исходный текст
Ответ на Re: Bug in JDBC-Driver?  (John R Pierce <pierce@hogranch.com>)
Список pgsql-jdbc

On Fri, 17 Dec 2004, John R Pierce wrote:

> > The really serious problem with this is the assumption that the server
> > has the same set of available timezones (and spellings of same) as the
> > client does.
>
> timezones seriously suck.
>
> China uses CST. So does North America.     How you gonna resolve THAT ?

Java (and pg) timezones aren't just abbreviations.  Mine is
"America/Los_Angeles" which is pretty unique.

> The proper solution is to use "ISO" time with -07 / +08 kinda timezones
> if you need to get data in/out of timestampz fields....  Java can do
> this just by specifying the right option when you convert a calendar
> time to a string.
>

When sending timestamp information to/from the database this is indeed
what is used, but this thread is about resolving the fact that Java's
concept of timestamp is halfway between with timezone and without timezone
which is tough to match up with pg and the sql standard.

Kris Jurka

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: Bug in JDBC-Driver?
Следующее
От: "Xavier Poinsard"
Дата:
Сообщение: Re: Patch to reduce the number of messages to translate