Closed warrenbuckley closed 7 years ago
Really sorry to hear this isn't working for you. Unfortunately I didn't implement the locale feature and since we don't use it at Baremetrics you're on your own. Shouldn't be too hard to dig in and sort it out though. You might ping @RocAlayo as he submitted the PR that brought this feature in. :/
To update on this, the problem is with this piece of code moment().localeData().firstDayOfWeek()
Some locale do not use Sunday as the starting day of the week, and others use Monday.
Any news/update on the PR I have submitted for you to consider/review @tyvdh @scottrobertson @Shpigford
Sorry. Haven't had the chance to look it over yet. Maybe this weekend.
Problem
When using locales with the calendar we get some weird quirks & UI weirdness. For example if we set the momentjs locale to en-gb then click the second date in the date range and you will see no dates being shown.
Additionally if you page through the calendar months into the past, some months will load & others will display the same problem of no dates for that month.
If you need further details or any steps to replicate further then please let me know.
Thanks, Warren
JavaScript Console Stack Trace Log
I get the following error when using the Calendar DateRange Picker when the user's moment locale is set to
en-gb
withmoment.locale("en-gb")
Current code