[Sprint/RollingRabbit](fix): Swapped out old failing datepicker library
Closes #2171 (closed)
Summary
The old date-picker component was broken (the one that is used on the wallet pages as filters). Swapping out other components to use this format is out of the scope of this MR, but would be worth consideration.
https://github.com/DanielYKPan/date-time-picker - Actively maintained, quite a lot of functionality that's easy to reach (e.g. min and max).
Testing
- Log in, type a post.
- Select a value in the date selector to a date in the future.
- Close the date window and re-open. it should remember the date when re-opened.
- Change the date to today, and the time to 6 minutes in the future.
- Type the time in the post
- Post it
- Check the wallet pages with date filters all work correctly.
- Check back in a few minutes, post should have posted and the time posted should match the post text.
Regression Scope
This is quite a big change with a couple of areas a regression could crop up in.
- Existing calendars in hidden corners of the site should be compatible with this wrapper, but they could fail.
- The time shown and posted times could not be accurate.
Edited by Ben