Path-Check / safeplaces-dct-app

COVID Safe Paths (based on Private Kit) is an open and privacy preserving system to use personal information to battle COVID
https://covidsafepaths.org
MIT License
465 stars 285 forks source link

Display Correct Exposure Duration On Calendar Screen #1312

Closed yonatanmk closed 4 years ago

yonatanmk commented 4 years ago

Description:

The Possible Exposure Time displayed for exposed dates on the calendar screen is currently reporting an impossibly high exposure time. This was caused by the durationToString method expecting a duration in units of minutes but actually getting a duration in units of milliseconds.

Linked issues:

https://pathcheck.atlassian.net/browse/SAF-845

Screenshots:

Before: Screen Shot 2020-07-22 at 1 50 06 PM

After: Screen Shot 2020-07-22 at 4 42 19 PM

How to test:

  1. Generate an exposure notification
  2. Select an exposed date on the exposure calendar screen The reported exposure duration should be a reasonable number