["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"].forEach(
because the date argument provided using getFirstDayInMonth(date).ddd
will return what was defined through dayjs.locale() other than "en" will return non english weekday string,
thus won't match anything so the variable number will always be zero.
I'm implementing a fix, and will update with a pull request.
If you declare dayjs.locale() somewhere alongside using this library, the weekday matching function below will fail:
react-tailwindcss-datepicker/src/helpers/index.ts
Line 174 in bf063fe
["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"].forEach( because the date argument provided using getFirstDayInMonth(date).ddd will return what was defined through dayjs.locale() other than "en" will return non english weekday string, thus won't match anything so the variable number will always be zero.
I'm implementing a fix, and will update with a pull request.
See related: #150