Closed Shui-Be closed 7 months ago
Hi Thanks will take a look at this.
Need to update the week configuration to include the super.firstDayOfWeek :+1:
Taking a look at https://en.wikipedia.org/wiki/ISO_week_date monday seems to be the start of new weeks: What I will do is use the Monday that is displayed to calculate the week-number if Saturday / Sunday / Monday is used for firstDayOfWeek. However if some other date is selected like Tuesday / Wednesday/ Thursday / Friday then I will display both week-numbers ex "17-18"
@werner-scholtz sry for tagging directly, thanks for the quick update.
when i switched the First day of week dropdown in the demo app from Monday to Sunday, the week number and week range seems to be displaying the next week's number and range.
a picture is worth a thousand words.. :
in the pictures above: my current day is April 23rd, 2024, the week range is displaying from April 28 to May 4th instead of April 21 to April 27.
@kayatmin, just checking the issue is that it jumps to the next week instead of displaying the current week ? Everything else is fine ?
@werner-scholtz yes that's correct, everything else seems to be working well, i.e., clicking on the arrow to go previous and next weeks displays the ranges correctly, callbacks returns the correct date also.
Hi!
there's an issue when the firstDayOfWeek is set to DateTime.sunday but the calendar header is showing the next week's range.
in the picture below, the time range for week 17 is showing (Sun 28 - Sat 4), where it is supposed to be (Sun 21 - Sat -27), Time zone in Toronto, ON (GMT-4)
Steps to reproduce: