uwazi
uwazi copied to clipboard
Unify date parsing libraries
Since moment.js
and moment-timezone
will no longer developed (https://momentjs.com/docs/#/-project-status/) we should remove that library and unify which one will be used from now on.
We have luxon
being used in V2 client components, date-fns
is used in the current library datepicker, and any-date-parser
is also in the mix.
Remember there are two types of date processes: ones that need to offset the user's timezone (date picking a birthday, for example), but also dates that need to keep the timezone: update log. So there needs to be options for both scenarios.