-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello
I got a really behavior with my calendar and the property week of year
Here my zul
<calendars id="calendars" firstDayOfWeek="Sunday" mold="month" />
I'm only using in in month view
Here My onCreate code
calendars.setCurrentDate(new Date()); calendars.setWeekOfYear(true);
With that, the week of today (Mat 3rd) is 17 on a french localized browser and 18 on a us localized browser
The weird thing is : On my toolbar i got a today button to come back to today day
calendars.setCurrentDate(new Date());
When i click on the today button, The week of Year changes (+1)
If it was 17 it's now 18, and if it was 18 it's now 19.
Any idea why ?
Could it be a bug ?
Thanks
Nicolas
Please provide an example and post a bug with it to here - http://tracker.zkoss.org/browse/ZKCAL
http://tracker.zkoss.org/browse/ZKCAL-24
you can actually reproduce the issue with the DEMO, just add calendars.setWeekOfYear(true); at the end of the doAfterCompose in the class DemoCalendarComposer
launch the demo, and click on the today button ... you'll see the week of the year value changes
ok thanks.
Asked: 2012-05-03 21:37:43 +0800
Seen: 144 times
Last updated: May 22 '12