Closed (fixed)
Project:
Date
Version:
6.x-2.x-dev
Component:
Date API
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jun 2008 at 11:18 UTC
Updated:
26 Sep 2010 at 12:50 UTC
date_api.module defines date_week_range($week, $year) but calendar.module uses date_week_range($year, $week).
Also $view->year is still used once in date_week_range(); should be $year.
Comments
Comment #1
karens commentedGood catch! Thanks. This has been committed.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #3
thehong commentedWhy it is #1:
But not #2:
#1 get me 1 week off.
Comment #4
thehong commentedComment #5
arlinsandbulte commented@thehong:
I have a feeling your issue might be more closely related to this: #686394: Default of current time is off by one week for granularity of week
Setting this issue back to fixed.
Comment #6
thehong commentedThanks arlinesandbulte, but how about my question on this issue?
Comment #7
arlinsandbulte commented@thohong:
I'm really not sure exactly.
I think the root of all these 'week' issues (and there are a bunch of them) is due to the difference in ISO 8601's week number definition vs the customary US definition.
PHP uses ISO 8601 week numbers, so date has to do a bunch of trickery to deal with other week definitions (like the US convention).
With #641344: Add option to use ISO 8601 week numbers, I think all works pretty well if you use ISO 8601 week numbers.
But, other week number definitions don't work well right now.