Re: Timestamp Conversion Woes Redux
От
Christian Cryder
Тема
Re: Timestamp Conversion Woes Redux
Дата
Msg-id
90876a9e0507201005277e4a0a@mail.gmail.com
Ответ на
Re: Timestamp Conversion Woes Redux (Kris Jurka)
Список
Дерево обсуждения
Re: Timestamp Conversion Woes Redux "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
On 7/20/05, Kris Jurka wrote: > Currently everything works if the client and server are in > the same timezone which is 99% of the time. Just to clarify - this is not technically correct. If you have a zoneless timestamp in the db, and your client and server are running in daylight savings time, and that date happens to fall in DST "no man's land" (eg. between 1 and 2 AM on fist Sunday in April), that value WILL get munged when you read it, and it stays munged when you write it back - regardless of how the column is declared in the db. This is a function of the timestamp getting flattened to a String (which in turn uses a Calendar, which in turn applies DST to display a "valid" time, which in turn munges the data). So there is a scenario where the dates will still get munged even though client and server are in the same timezone. And that's a problem. Christian
В списке pgsql-jdbc по дате отправления