day8 / re-com

A ClojureScript library of reusable components for Reagent
https://re-com.day8.com.au
MIT License
797 stars 147 forks source link

Datepicker :show-weeks? displays incorrect week number when showing all but Monday w/c #159

Closed hipitihop closed 3 years ago

hipitihop commented 6 years ago

Datepicker leverages the cljs-time library. When displaying the week number via :show-weeks? it uses the 'ww' format here and here In turn it looks like cljs-time uses the IS8601 week numbering which is "Monday" so whenever datepicker is showing anything other then week commencing day Monday, the week numbers are incorrect. This includes the demo app which defaults to Sunday w/c For example see the left datepicker bellow which start W/C Sunday, week number 31 is not correct, should be 30

image