0

[calendar] - weekofyear

asked 2012-05-03 21:37:43 +0800

satan87 gravatar image satan87
255

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

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2012-05-09 08:45:13 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

Please provide an example and post a bug with it to here - http://tracker.zkoss.org/browse/ZKCAL

link publish delete flag offensive edit

answered 2012-05-09 17:26:42 +0800

satan87 gravatar image satan87
255

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

link publish delete flag offensive edit

answered 2012-05-22 08:32:14 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

ok thanks.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-05-03 21:37:43 +0800

Seen: 144 times

Last updated: May 22 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More