[Tickets #6172] Bad Month links in year view

bugs at horde.org bugs at horde.org
Tue Jan 29 19:27:39 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=6172
-----------------------------------------------------------------------
 Ticket             | 6172
 Created By         | hofsteda at gmail.com
 Summary            | Bad Month links in year view
 Queue              | Kronolith
 Version            | 2.1.6
 Type               | Bug
 State              | Unconfirmed
 Priority           | 2. Medium
 Milestone          | 
 Patch              | 
 Owners             | 
-----------------------------------------------------------------------


hofsteda at gmail.com (2008-01-29 14:27) wrote:

Clicking on month's link where the 1st falls on the first day of the week
(Sunday/Monday according to prefs) in the year view brings up the previous
month's month view due to the timestamp in the month's url generated by
year.php e.g. 9/08 with Monday as start of week. 6/08 w/Sunday as start of
week.  The timestamp used in the month's url is generated in for next loop
used for the previous months events.  If the last day of the week
(Saturday/Sunday) is the last day of the month this timestamp is in the
previous month.

Two fixes I see:
1. remove the timestamp in the $url = on line ~74. It doesn't seem
necessary.
2. add 1 to daysinview if endday=HORDE_DATE_SATURDAY/HORDE_DATE_SUNDAY in
the ifs used to generate $startofview $daysofview. This may cause issues
with previous months.



More information about the bugs mailing list