-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change: Update datepicker to use current version of react-datepicker
react-datepicker > 1.8.0 dropped the usage of moment.js and requires native JS Date objects as inputs. Therefore we didn't update it for a long time. This change adjusts our own datepicker component to still use moment.js dates and passes the wrapped JS Date objects to react-datepicker. Because native Date objects don't know anything about timezone the datepicker component requires a timezone prop now to be able to convert the native Date object into a timezone aware moment.js date. This change might also fix a small issue with out datepicker component on initial creation. The datepicker created a moment.js date having possibly the wrong timezone information. Also with updating react-datepicker to the latest release all blockers for updating to React 18 are resolved.
- Loading branch information
1 parent
1827b8c
commit 50c01d5
Showing
7 changed files
with
115 additions
and
119 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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