![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
The following bug has been logged online: Bug reference: 1563 Logged by: Dirk Raetzel Email address: d00273 (AT) spaetzle (DOT) de PostgreSQL version: 8.0.1 Operating system: i686-pc-mingw32, compiled by GCC gcc.exe (GCC) 3.4.2 (mingw-special) Description: wrong week returnded by date_trunc('week', ...) Details: date_trunc('week', ...) returns the wrong week for first days in January if their calendar week belongs to the previous week. |
#2
| |||
| |||
|
|
"Dirk Raetzel" <d00273 (AT) spaetzle (DOT) de> confessed: date_trunc('week', ...) returns the wrong week for first days in January if their calendar week belongs to the previous week. I brought this up a couple of weeks ago in Hackers since I created this error last year :-( |
#3
| |||
| |||
|
|
We need to change the function APIs so that date2isoweek passes back some indication of which year it thought the week belongs to, and then isoweek2date must use that instead of the original year number. Each of these functions is used in several places, so the change is not quite trivial, but still not a big deal. Who wants to fix it? |
![]() |
| Thread Tools | |
| Display Modes | |
| |