Skip to content
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

DayJS Localizer - Setting default timezone does not adjust min/max correctly in TimeGrid #2688

Open
5 tasks done
milkman4 opened this issue Nov 27, 2024 · 0 comments
Open
5 tasks done
Labels

Comments

@milkman4
Copy link

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/sandbox/react-big-calendar-example-forked-kr3qfv?file=%2Fsrc%2FApp.js%3A25%2C1&workspaceId=aefb4e6d-7522-4f03-91d7-f1d6177ccdfa

Bug description

When using the dayJS localizer, setting the default timezone incorrectly and unexpectedly shifts the min/max time range.

Expected Behavior

When switching timezones, the min/max should remain as is set (or default of 12:00am -> 11:59pm)

Actual Behavior

When switching timezones, the min/max are rendered/displayed as the tz set time but min/max is still the local time (not tz adjusted)

react-big-calendar version

1.16.3

React version

17.0.2

Platform/Target and Browser Versions

Chrome

Validations

  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a react-big-calendar issue and not an implementation issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
@milkman4 milkman4 added the bug label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant