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 15 forks source link

iSC/Cold chain/GAPS: asset installation date is wrong #5459

Open marthakeezy opened 2 hours ago

marthakeezy commented 2 hours ago

What went wrong? 😲

Added 3 assets on 19/11/2024, Installation date is showing 18/11/2024

Screenshot 2024-11-19 at 10 23 31 AM

Expected behaviour 🤔

Should be showing an up-to-date installation date

How to Reproduce 🔨

Steps to reproduce the behaviour:

I am a bit unsure! Yesterday (18/11/2024), when I was adding assets, the installation date was correct. However, today, I deleted all three and re-added them to test a scenario, and installation date appeared as yesterday. Can it be that if an asset was once added to the store, and then removed, installation date gets stored somewhere and even if the asset is re-added later, installation date will show up as the original one?

Your environment 🌱

marthakeezy commented 2 hours ago

Setting as High as there is no workaround to correct the installation date... Apart from not deleting an asset

roxy-dao commented 2 hours ago

Installation date is saved as a date instead of datetime, so can't offset date with local date. Same goes for all the other date fields.