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

Feature: Localizer Support in Date Utils #1939

Closed
lenehan2 opened this issue May 21, 2021 · 1 comment
Closed

Feature: Localizer Support in Date Utils #1939

lenehan2 opened this issue May 21, 2021 · 1 comment

Comments

@lenehan2
Copy link

lenehan2 commented May 21, 2021

Do you want to request a feature or report a bug?

Feature

What's the current behavior?

Currently, much of the datetime math is handled using the browsers datetime via date-math.

When a timezone other than the user's browser is used, this causes a few unavoidable problems (at least unavoidable to the best of my knowledge). For instance in the Week view, the time will not start at 12:00 am.

Relevant issues:

#1478 (specifically this comment)
#118

What's the expected behavior?

When supplying a timezone/localizer, this timezone should be taken into consideration when making core date arithmetic.

@cutterbl
Copy link
Collaborator

cutterbl commented Oct 6, 2021

@lenehan2 React-Big-Calendar now has full timezone support when using either the momentLocalizer or the new luxonLocalizer. The public documentation site is not yet up to date, but if you clone the repo you can run the 'examples' locally, giving you all of the details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants