search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Daypilot Scheduler Zooming

Asked by Christina P
11 years ago.
There is a small but important bug in your zoom code. When you click on a month to zoom into the weeks of that month, the first week number is off by one! leaving us with [ week 3, week 3, week 4, week 5]. the first week is always 1 too many! We just purchased this tool, and need to fix this issue. Thanks
Comment posted by Dirk
10 years ago.

We have the same problem. Is there a way to solve or go around it?
A reply would be nice.

Answer posted by Dan Letecky [DayPilot]
10 years ago.

This could happen for WeekStarts=Sunday. The week number calculation is based on ISO 8601 which uses Monday as the first day of week. The supplied Sunday belongs to a previous week according to the standard.

It's fixed now in build 6.6.2336:

It finds the Monday of the current week and passes it to Week.WeekNrISO8601() method.

The workaround would be to use custom HTML for the header using BeforeTimeHeaderRender event handler (for e.IsColGroup == true).

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.