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

Time Zone support #70

Open
AlexanderKapelyukhovskiy opened this issue Oct 24, 2023 · 3 comments
Open

Time Zone support #70

AlexanderKapelyukhovskiy opened this issue Oct 24, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@AlexanderKapelyukhovskiy

In my case I have an advisor with available time slots and a customer who needs to pick available time. Advisors and customer could be in different time zones. I wasn't able to find time zone support for component. Could you please clarify is there a support of TimeZones in component and if not how hard it would be to adjust code for time zone support?

@TylerAHolden
Copy link
Owner

Hi did you see the locale prop here: https://react-schedule-meeting.netlify.app/docs/examples/#internationalization--languages would this fit your use case where you need to modify the timezones for either the advisor or customer?

@AlexanderKapelyukhovskiy
Copy link
Author

I saw this page but I'm still not sure how can I specify time zone here. I would like to be able to specify time zone for representation of time slots and do not use default browser time zone. Hope it makes sense.

@TylerAHolden
Copy link
Owner

Oh I understand, no unfortunately there is no support for this. I believe in order to achieve something like that another library is needed to transform date-fns date objects. https://date-fns.org/v2.29.2/docs/Time-Zones

The problem is that this library uses the direct date-fns date object without allowing a transform function. I might have time in the next couple of months to look into a solution where you could pass in a transform function. I've been wanting to refactor how localization is handled anyways but don't count on me to get to this quickly

@TylerAHolden TylerAHolden added the enhancement New feature or request label Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants