I am encountering a design problem on a new project. I have chosen the library Luxon (https://moment.github.io/luxon/) because I think it suits this project perfectly. Date-fns (https://date-fns.org/) is also great but suffers from very bad timezone support.
Now, I am also using a datepicker library called react-datepicker (https://reactdatepicker.com/). This is used by my company. The problem is react-datepicker uses date-fns under the hood. Of course both libraries will perfectly work fine in the project, but since I am not the only one working on this project, it will lead to confusion. For examples:
- date and time formatting tokens might be different in both libraries
- Luxon rap dates in a DateTime object which might lead to confusion on what values are really returned.
I have no idea how to manage this potentially disastrous design. What should I do? If I removed date-fns, react-datepicker will fail to work. If I removed luxon, I can no longer handle timezones. Please help.