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

Update tests to simulate different timezones #2936

Open fergie-nz opened 8 months ago

fergie-nz commented 8 months ago

Is your feature request related to a problem? Please describe 👀

Add tests with a variety of hard coded timezones as per this comment: https://github.com/msupply-foundation/open-msupply/pull/2922#discussion_r1488524017

Additional context 💌

This PR was added without the desired comprehensive testing. It would be great if the testing could be added to simulate a number of timezones.

This probably involves a slightly more complex test set up with simulated timezones as there are a number of helper functions which use the cached timezone.

andreievg commented 4 months ago

Added refactor label as a candidate for the two week refactor/bug fix period