msupply-foundation / open-msupply

Open mSupply represents our most recent advancement in the Logistics Management Information System (LMIS), expanding on more than two decades of development inherited from the well-established legacy of the original mSupply.
https://msupply.foundation/open-msupply/
Other
23 stars 14 forks source link

Date filters (general) + patient birth date on creation displays the incorrect date (date before) #5247

Open roxy-dao opened 7 hours ago

roxy-dao commented 7 hours ago

What went wrong? 😲

Reported by @alainsussol & @kahn-msupply

When they filter by date (in stock and patient) the date selection jumps to the date before and the same thing happens when entering a patient's birth date on creation.

Possible timezone problem.

https://github.com/user-attachments/assets/5155487a-3949-4a9e-a2a2-41c429baa798

https://github.com/user-attachments/assets/2db382bd-ca6c-46b4-91a8-3324e1933c72

photo_2024-10-30 09 06 15

Expected behaviour 🤔

How to Reproduce 🔨

Steps to reproduce the behaviour:

  1. Go to a date filter (stock expiry date or patient DOB)
  2. Click on a date, see that it changes to the date before

Your environment 🌱

lache-melvin commented 7 hours ago

Setting as high - perhaps should be normal (not actively blocking) but dates are quite a critical component of the app and users should be able to trust them!