BUG #12432: date_trunc returning wrong year and day

Поиск
Список
Период
Сортировка
От bquirion@gmail.com
Тема BUG #12432: date_trunc returning wrong year and day
Дата
Msg-id 20150105191703.11501.36985@wrigleys.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #12432: date_trunc returning wrong year and day  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Re: BUG #12432: date_trunc returning wrong year and day  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged on the website:

Bug reference:      12432
Logged by:          Brian Quirion
Email address:      bquirion@gmail.com
PostgreSQL version: Unsupported/Unknown
Operating system:   Linux
Description:

foodb=> select date_trunc('week', now() - interval '1 week');
       date_trunc
------------------------
 2013-12-30 00:00:00-08
(1 row)

foodb=> select date_trunc('week', now() - interval '2 week');
       date_trunc
------------------------
 2014-12-22 00:00:00-08
(1 row)

I'mn using postgres 8.0.3

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #12428: Incorrect Code
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #12432: date_trunc returning wrong year and day