Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LP#1828114 Incorrect date of birth saved in certain time zones
The Angular and AngularJS patron edit/register interfaces save the birth date one day before the selected date if the client device is set to a UTC+ time zone. This patch converts the Date object to a formatted date string without converting it to UTC. To test: 1. Set your device time zone to a time zone after UTC 2. Edit a patron's date of birth in the AngularJS interface 3. Note the saved date of birth is 1 day earlier than expected 4. Repeat steps 2-3 for the Angular interface 5. Apply patch 6. Repeat steps 2 for both the Angular and AngularJS interfaces 7. Note the saved date of birth is as expected Signed-off-by: Dan Briem <[email protected]> Signed-off-by: Jason Stephenson <[email protected]>
- Loading branch information