The real 'bug' is that the backing data is a bit of a mess. From @adamdewey - these are the current vaccination date formats that have been inserted (either via import script, the UI, or footrunner):
DD-MM-YYYY
DD/MM/YYYY
YYYY-MM-DD
YYYY/MM/DD
MM/DD/YYYY
M/D/YYYY
YYYY/DD/MM
YYYY/D/M
D/M/YYYY
D-M-YYYY
Mobile will only currently parse the following correctly:
DD-MM-YYYY
DD/MM/YYYY
D/M/YYYY
D-M-YYYY
To reproduce
Steps to reproduce the behaviour:
(This will actually take you many many hours so it might be easier to just ask Adam or Kat to see if you are curious) - Point a tablet at the kiribati vax training server
Download 8.5.0-rc1 of Mobile and initialise a store on it
There are some users that have 'Invalid Date' displayed in their vaccination history modal (ping Adam or Kat for the name if you want some examples - won't list here for privacy reasons)
Expected behaviour
The vaccination date to show up :(
Proposed Solution
Can give a pass as DD/MM/YYYY (or DD-MM-YYYY) first, and if that fails, try the ISO format (YYYY/MM/DD or yyyy-mm-dd) <- these seem to be the most common.
If it still fails, someone needs to edit and make the correction at the source, we can't cater for all possible permutations 🙀 (e.g. 04/03/21 - which is the day, which is the month? Do we guess that 21 is the year and it wasn't entered in 2004?)
Describe the bug
To reproduce
Steps to reproduce the behaviour:
Expected behaviour
The vaccination date to show up :(
Proposed Solution
Version and device info
Additional context
N/A