apozas/contactdiary

Saving of end date is incorrect if end time is set afterwards

Closed this issue · 0 comments

Description of the bug
When setting a new contact, if an end time is set after setting an end date, the internals modify the end date previously set. Despite showing the correct end date, saving and opening the contact again show an incorrect end date. This does not happen when the order followed is Begin date - Begin time - End date.

To Reproduce
Steps to reproduce the behavior:

  1. Create new contact or event
  2. Set a begin date
  3. Set an end date different from the begin date
  4. Set a begin time
  5. Save the entry and edit it. The end date is not the original one.

Additional information
When editing the contact/event, the problem does not appear. Therefore, it is only a problem in NewContactActivity and NewEventActivity.