Re: to_timestamp returns the incorrect result for the DST fall over time.

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: to_timestamp returns the incorrect result for the DST fall over time.
Дата
Msg-id 4D257896020000250003904F@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: to_timestamp returns the incorrect result for the DST fall over time.  (Gouse <gkhaji@gmail.com>)
Ответы Re: to_timestamp returns the incorrect result for the DST fall over time.  (Gouse <gkhaji@gmail.com>)
Список pgsql-bugs
Gouse <gkhaji@gmail.com> wrote:

> I am afraid this may not give the result I am looking for.

It sounds like you didn't even try it.  That's bad form.

I'm wondering why you bring to_timestamp into it at all, though.
Are you aware of the behavior of casting?:

test=# select '2011-01-15 00:00:00.0 UTC'::timestamptz;
      timestamptz
------------------------
 2011-01-14 18:00:00-06
(1 row)

If you put together a string with the UTC timezone specified, and
cast it to timestamptz, I think you'll get what you want.

-Kevin

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

Предыдущее
От: Gouse
Дата:
Сообщение: Re: to_timestamp returns the incorrect result for the DST fall over time.
Следующее
От: areveille
Дата:
Сообщение: Re: BUG #5641: Can not create any python language