SmartGWT Pro 5.0-p20160608 (had earlier version, upgraded to verify problem is still there). Tried various browsers, all show same problem.
Today it's 11:th of June. This is week 23 in Sweden and rest of Europe, but my Timeline shows it as week 22. This is incorrect.
I have tried both with english and swedish locales (setting the gwt:property to en_GB and sv_SE in the html), the only thing that changed was first day of week.
See attached screenshot, and find a simple code example below.
Please let me know if there is anything i can do programmatically to sort this out, or if you have another solution. (i tried setting dayofweek manually below as you can see, doesn't change anything)
Today it's 11:th of June. This is week 23 in Sweden and rest of Europe, but my Timeline shows it as week 22. This is incorrect.
I have tried both with english and swedish locales (setting the gwt:property to en_GB and sv_SE in the html), the only thing that changed was first day of week.
See attached screenshot, and find a simple code example below.
Please let me know if there is anything i can do programmatically to sort this out, or if you have another solution. (i tried setting dayofweek manually below as you can see, doesn't change anything)
Code:
public class Test implements EntryPoint {
public void onModuleLoad() {
initLayout();
}
public void initLayout() {
VLayout mainLayout = new VLayout();
mainLayout.setWidth(500);
mainLayout.setHeight(300);
mainLayout.setMembersMargin(30);
mainLayout.setLayoutTopMargin(20);
GenericTimeline timeline = new GenericTimeline(null, null, false);
HeaderLevel week = new HeaderLevel(TimeUnit.WEEK);
week.setHeaderWidth(100);
HeaderLevel day = new HeaderLevel(TimeUnit.DAY);
day.setHeaderWidth(100);
timeline.setHeaderLevels(new HeaderLevel[]{
week, day
});
timeline.setFirstDayOfWeek(1);//no impact
mainLayout.addMember(timeline);
mainLayout.draw();
}
}
Comment