-
-
Notifications
You must be signed in to change notification settings - Fork 735
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
feat: new timeZone
prop (experimental)
#2467
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Owner
gpbl
commented
Sep 18, 2024
•
edited
Loading
edited
gpbl
changed the title
Add experimental timezone support
feat: new Sep 19, 2024
timeZone
prop (experimental)
kodiakhq bot
referenced
this pull request
in technifit/tasker
Sep 19, 2024
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [react-day-picker](https://daypicker.dev) ([source](https://redirect.github.com/gpbl/react-day-picker)) | [`9.1.0` -> `9.1.1`](https://renovatebot.com/diffs/npm/react-day-picker/9.1.0/9.1.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/react-day-picker/9.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-day-picker/9.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-day-picker/9.1.0/9.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-day-picker/9.1.0/9.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>gpbl/react-day-picker (react-day-picker)</summary> ### [`v9.1.1`](https://redirect.github.com/gpbl/react-day-picker/releases/tag/v9.1.1) [Compare Source](https://redirect.github.com/gpbl/react-day-picker/compare/v9.1.0...v9.1.1) This release improves reliability for controlled mode and adds experimental support for time zones. #### Time Zone Support By integrating the [@​date-fns/tz](https://redirect.github.com/date-fns/tz) utilities for handling time zones, we have added a new experimental `timeZone` prop. Please see the [updated docs](https://daypicker.dev/docs/localization#time-zone) for more details. ```tsx import { DayPicker, TZDate } from 'react-day-picker'; <DayPicker timeZone="Europe/Athens" // set the time zone disabled={TZDate.tz("Europe/Athens")} // make sure you use `TZDate` to initialize dates /> ``` > \[!NOTE] > If you were using the experimental `react-day-picker/utc` module, you can skip now it. Remove the `@date-fns/utc` package and just pass `timeZone="UTC"` to `<DayPicker />`. #### What's Changed - fix: make sure internal state is not updated in controlled mode by [@​gpbl](https://redirect.github.com/gpbl) in [https://github.com/gpbl/react-day-picker/pull/2473](https://redirect.github.com/gpbl/react-day-picker/pull/2473) - feat: new `timeZone` prop (experimental) by [@​gpbl](https://redirect.github.com/gpbl) in [https://github.com/gpbl/react-day-picker/pull/2467](https://redirect.github.com/gpbl/react-day-picker/pull/2467) - feat: export locales from `react-day-picker/locale` by [@​gpbl](https://redirect.github.com/gpbl) in [https://github.com/gpbl/react-day-picker/pull/2474](https://redirect.github.com/gpbl/react-day-picker/pull/2474) **Full Changelog**: gpbl/react-day-picker@v9.1.0...v9.1.1 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/technifit/tasker).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.