Re: BUG #4022: DST Time Zone Bug related to: select now() at time zone 'EST'

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #4022: DST Time Zone Bug related to: select now() at time zone 'EST'
Дата
Msg-id 23274.1205158348@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #4022: DST Time Zone Bug related to: select now() at time zone 'EST'  ("Username_PalmTreesNSand" <webdata9@comcast.net>)
Список pgsql-bugs
"Username_PalmTreesNSand" <webdata9@comcast.net> writes:
> I have recently noticed a problem since the Daylight savings time change
> (past 1-2 days).
> The following query returns the time from an hour ago (I'm in EST, but I
> need to be able to handle other time zones):
>     select now() at time zone 'EST'
> or    select now() at time zone 'CST'

> This query returns the correct time for EST:
>     select now()

I see no bug here.  We're in daylight saving time now, so the zone is
EDT not EST.  IOW, if it's currently 10:10 EDT, it is also a true
statement that it's 9:10 EST.

            regards, tom lane

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [PATCH] Don't bail with legitimate -N/-B options
Следующее
От: Joseph S
Дата:
Сообщение: Re: BUG #4020: RFE: have way to log autovacuum activity