Description
Describe the bug
The birth date of a patient is different on Mobile that it is on Msupply desktop when searching a patient online. It is off by one day generally.
The problem is not just that the date is off but when syncing back to the desktop, it will update the patient date of birth to the wrong date.
If I cancel the vaccination process after I searched the patient online and restart the vaccination process ie clicking on the Vaccination button and search for the patient again (It is now present locally and I don't need to search online to find him/her) the date of Birth is displayed locally. So the problem is specific to displaying the patient straight after the search online process.
To reproduce
Steps to reproduce the behaviour:
- Go to Server and add a patient and specify a birth date. don't sync the tablet.
- On the tablet, click on the vaccination button
- look for the patient you have added. You will not find this person. Click on the search online button.
- The patient is displayed. See error the date of birth is off by one day from what is in the server ?
- Sync the tablet. Check on the server, the date of birth on the server has changed to the one on the tablet which was off by one day.
Expected behaviour
The date of birth of a patient should be the same on the tablet than the original date of birth on the server
Proposed Solution
Leave if you don't know how to fix/implement. Edit this issue description and explain here if you know the best path of implementing the fix within the codebase.
Version and device info
- App version: v8.05-rc1
- Tablet model: Android Galaxy Tab A8
- OS version: Android version 11
Additional context
Found while testing #4732