-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Event segments one day too short when timezone is set #2659
Comments
The issue appears to be with the react-big-calendar/src/utils/eventLevels.js Lines 26 to 28 in 856dddf
It seems like this is subtracting "1" in situations where the segments are already correct. I've found that simply removing the segmentOffset appears to resolve the issue in my test case. I'm not sure exactly when it is necessary to subtract 1 (if ever?), but it seems to happening more often than it should. |
Are there any updates on this issue? I've just stumbled on this broken behavior in my application. |
@filipeximenes if helpful, we've been working around it by modifying the localizer object after the fact, and have not seen issues for our use cases.
|
Thanks @evanbrooks-codaio, that seems to work for me as well |
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/sandbox/react-big-calendar-example-forked-wc6sts
Bug description
I believe this may be the same issue as #2425 , however it appears to happen consistently in any timezone, and consistently with either the moment or luxon localizers. feel free consolidate if this is a duplicate.
Expected Behavior
Actual Behavior
react-big-calendar version
1.14.1
React version
18.2.0
Platform/Target and Browser Versions
macOS 14.4, Chrome 129
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: