Skip to content

fix: add timezone to Date props #2750

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

Merged
merged 3 commits into from
Apr 27, 2025
Merged

fix: add timezone to Date props #2750

merged 3 commits into from
Apr 27, 2025

Conversation

gpbl
Copy link
Owner

@gpbl gpbl commented Apr 26, 2025

In #2658, we fixed the initialMonth prop to account the timezone when using a Date object to set the initial month. In this PR, I am applying the same fix to other props that rely on Date.

Relevant comment about tests failing due to timezone overrides:

814cb76#commitcomment-155917971

gpbl added 2 commits April 26, 2025 16:24
Signed-off-by: gpbl <io@gpbl.dev>
Signed-off-by: gpbl <io@gpbl.dev>
@gpbl gpbl requested a review from rodgobbi April 26, 2025 21:45
@gpbl gpbl changed the title fix: add timezone to props when passed as Date fix: add timezone to Date props Apr 26, 2025
Signed-off-by: gpbl <io@gpbl.dev>
gpbl referenced this pull request Apr 27, 2025
When initialMonth is passed as Date type, it would override the provided
timezone settings. This fix ensures proper timezone handling.
@gpbl
Copy link
Owner Author

gpbl commented Apr 27, 2025

Thanks @rodgobbi !

@gpbl gpbl merged commit 8ca5a22 into main Apr 27, 2025
20 checks passed
@gpbl gpbl deleted the gpbl/timezoned-props branch April 27, 2025 21:08
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

Successfully merging this pull request may close these issues.

2 participants