blackbluegl / calendar-component

initial Vaadin8 calendar-component
Apache License 2.0
11 stars 21 forks source link

Calendar Days not Responding to Locale Changes? #19

Closed bshue closed 6 years ago

bshue commented 6 years ago

Hello,

First, thank you for working on a Calendar add-on for Vaadin. The framework most certainly needs a calendar.

I cannot figure out how to change the order of the days in the Calendar. The default order is:

Mon, Tue, Wed, Thu, Fri, Sat, Sun

but this does not match the typical US calendar. I want the days to be in the following order:

Sun, Mon, Tue, Wed, Thu, Fri, Sat

Code example:

calendar = new Calendar<>(eventProvider); calendar.setLocale(Locale.ENGLISH); calendar.markAsDirty();

Thank you for your time!

pwilkin commented 6 years ago

This might be due to not respecting WeekFields.of(locale).getFirstDayOfWeek()

blackbluegl commented 6 years ago

Fixed in next release.

blackbluegl commented 6 years ago

not completly fixed :-/

blackbluegl commented 6 years ago

works in a range of a full week.