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

Timezone issue in Expandable Calendar (Calendar Provider) #2530

Open
ViraliVasa opened this issue Sep 26, 2024 · 0 comments
Open

Timezone issue in Expandable Calendar (Calendar Provider) #2530

ViraliVasa opened this issue Sep 26, 2024 · 0 comments

Comments

@ViraliVasa
Copy link

ViraliVasa commented Sep 26, 2024

In the current version of the react-native-calendars library, there is no option/method to set a specific time zone initially. The issue arises when the local device's time zone differs from the manually selected time zone. The library automatically sets the date to the device's local time zone, which results in an unintended date change. I'm looking for a solution to address this. Could anyone please help?

Version details: "react-native-calendars": "^1.1304.1"

Expected Behavior

Initially, the date is correctly set based on the time zone I specify using Luxon's setZone method, but after a few milliseconds, it reverts to the local device's date. The date should remain in the manually selected time zone. I've attached a video to demonstrate this behavior -

Simulator.Screen.Recording.-.iPhone.15.-.2024-09-26.at.17.15.47.mp4
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

1 participant