-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor: Fix broken week display when week starts not on a Sunday #3102
Conversation
44f0694
to
be68964
Compare
@akirk : Can you provide more detail about the original bug, as I'm having a hard time reproducing the issue. Does this only occur for specific browsers, locales, or sites? Only after a specific set of reproducible steps? |
I can confirm that this only occurs on non-English locales (in my case, broken in French language). Testing fix now... |
@aduth it happens on locales that have the week starting on days other than Sunday (for example French or German). |
Confirmed that fix works, and that it makes sense that the translated value is returned as a string, but that it should in fact be cast to a Number* as you've done here. 👍 * Typo on ReactDayPicker docs? I expect it should be Number, not boolean. |
Thanks!
Must be. This is the code within ReactDayPicker:
|
…eeks Editor: Fix broken week display when week starts not on a Sunday
Created a pull request in the react-day-picker repo: gpbl/react-day-picker#128 |
OSS "Good Citizen Award" to you 👏 🏆 ! |
This fixes the calendar view for scheduled posts when the week doesn't start on a Sunday.
Old:
New:
Problem was a strict compare between string and number.