| От | Josh Berkus |
|---|---|
| Тема | Re: Incorrect handling of timezones with extract |
| Дата | |
| Msg-id | 513F6792.3020907@agliodbs.com обсуждение исходный текст |
| Ответ на | Re: Incorrect handling of timezones with extract (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Incorrect handling of timezones with extract
|
| Список | pgsql-hackers |
> and extract(day) from that gives -2 not -3. You could argue that this > definition of timestamp subtraction isn't too consistent with the > timestamp-plus-interval operator, and you'd be right; but I doubt we'd > consider changing it now. We specifically added that feature to support production calendaring applications; I worked on it with Karel. When someone calendars a event to be "3 days later" they don't expect it to jump by an hour because it crossed a DST boundary. So changing it would break a bunch of people's apps, especially mine. -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера