CorruptedArk / did-i-take-my-meds

A Kotlin Android app to manage medications
GNU General Public License v3.0
179 stars 15 forks source link

off by one day error for dosage #71

Open agowa opened 1 year ago

agowa commented 1 year ago

Describe the bug Notification for dosage is shown one day before it starts.

To Reproduce One medication with the following schedules:

I.E., where a gradual dosage increase is planned until a final dosage is reached after a few weeks.

Expected behavior From 1st to 7th February, only one notification for the 8:00 dosage is shown. And starting with the 8th, a 2nd notification for the 12:00 dosage is shown.

Actual behavior On 7th February, a 2nd notification is shown for the 12:00 dosage even though that schedule didn't start yet.

Smartphone (please complete the following information):