TousAntiCovid Verif iOS issueshttps://gitlab.inria.fr/tousanticovid-verif/tousanticovid-verif-ios/-/issues2022-05-16T22:12:20+02:00https://gitlab.inria.fr/tousanticovid-verif/tousanticovid-verif-ios/-/issues/14Code version 3.2.12022-05-16T22:12:20+02:00JohanCode version 3.2.1Bonjour @x-BIn @x-EIn @x-GIn @x-GiIn @x-HIn @x-RIn @x-mtac,
La version 3.2.1 de l'application a été publiée sur App Store le 31/03/2022, cependant le code disponible dans ce dépôt Gitlab n'a, à ce jour, pas été mis à jour en conséquence...Bonjour @x-BIn @x-EIn @x-GIn @x-GiIn @x-HIn @x-RIn @x-mtac,
La version 3.2.1 de l'application a été publiée sur App Store le 31/03/2022, cependant le code disponible dans ce dépôt Gitlab n'a, à ce jour, pas été mis à jour en conséquence depuis la version 2.6.O il y a maintenant plus de deux mois.
Pourriez-vous faire le nécessaire s'il vous plaît ?
En vous remerciant d'avancehttps://gitlab.inria.fr/tousanticovid-verif/tousanticovid-verif-ios/-/issues/13Code version 3.22022-03-28T17:19:26+02:00JohanCode version 3.2Bonjour @x-BIn @x-EIn @x-GIn @x-GiIn @x-HIn @x-RIn @x-mtac,
La version 3.2 de l'application a été publiée sur App Store le 18/03/2022, cependant le code disponible dans ce dépôt Gitlab n'a, à ce jour, pas été mis à jour en conséquence d...Bonjour @x-BIn @x-EIn @x-GIn @x-GiIn @x-HIn @x-RIn @x-mtac,
La version 3.2 de l'application a été publiée sur App Store le 18/03/2022, cependant le code disponible dans ce dépôt Gitlab n'a, à ce jour, pas été mis à jour en conséquence depuis la version 2.6.O.
Pourriez-vous faire le nécessaire s'il vous plaît ?
En vous remerciant d'avancehttps://gitlab.inria.fr/tousanticovid-verif/tousanticovid-verif-ios/-/issues/12Positive tests collected in the 11 days before daylight saving time started a...2022-04-01T17:28:21+02:00Martin BonninPositive tests collected in the 11 days before daylight saving time started are not always detected as validHi everyone 👋
It looks like there's an issue with timezones while computing the validity of recovered positive tests. My guess is that it's due to the daylight saving time and that it offsets the results by 24h (a positive test is recog...Hi everyone 👋
It looks like there's an issue with timezones while computing the validity of recovered positive tests. My guess is that it's due to the daylight saving time and that it offsets the results by 24h (a positive test is recognised as valid after 12 days instead of 11).
For an example, assuming you got tested positive on March 18 at 2pm and daylight saving time happened on March 27, it looks like the code is doing something like this (pseudoCode):
```
let samplingDate = "2022-03-18"
let samplingDateUTC = Date(dateString: samplingDate) // 2022-03-18T00:00:00 UTC
let samplingDateUTCEndOfDay = samplingDate.roundingToEndOfDay() // 2022-03-18T22:59:59 UTC
// At this point, minimumValidity is now pointing at March 30th because the time difference is now +2 and not +1
let minimumValidity = samplingDateUTCEndOfDay.dateByAddingDays(11) // 2022-03-29T22:59:59 UTC
// minimumValidityBeginningOfDay is still March 30
let minimumValidityBeginningOfDay = minimumValidity.roundingToBeginningOfDay() // 2022-03-29T22:00:00 UTC
// Assuming the check is done on March 29, 2pm
let today = Date() // 2022-03-29T14:00:00+0200
// The pass should be valid except it is not because minimumValidityBeginningOfDay points at March 30th
today >= minValidity // false here :-(
```
TBH, I'm not 100% sure what's happening and why the rounding is necessary but this is the furthest I could investigate. Running the same test on the Android App doesn't have the same issue, I'm guessing because it doesn't have [this `roundingToEndOfDay`](https://gitlab.inria.fr/tousanticovid-verif/tousanticovid-verif-ios/-/blob/master/Anticovid%20Verify/core/services/certificate/verifier/vaccinePass/VaccinePassVerifierService.swift#L375)
Let me know if you need more details!
Hope this helps,
Martin