210029073 / cs3ip_lh3_myeyehealth

An eye health management mobile application designed for users to manage their eye heatlh
0 stars 0 forks source link

Problem with Updating Medication Reminders #7

Closed 210029073 closed 5 months ago

210029073 commented 7 months ago

About

Medication Reminder time becomes out-of-sync from inaccurate parsing of the time stored in long.

Additional Information

As the user updates their medication reminders, their medication reminder's time starts to lose its original time.

Cause of Defect

This is due to the heavily used Epoch time. The problem with this approach is that it when storing the epoch time in the data type long, it can cause potential inaccuracies when determining the time.

The best practice, and according to the ISO standards (ISO 8601), we must use ISO time.

Learn More

To learn more about ISO 8601 click here.

To learn more about how to include it in Java click here

210029073 commented 5 months ago

This has now been resolved, by using ViewModel to synchronise the changes after updating them.