Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong remaining time in day password #315

Closed
cornelinux opened this issue Sep 7, 2023 · 1 comment · Fixed by #316
Closed

Wrong remaining time in day password #315

cornelinux opened this issue Sep 7, 2023 · 1 comment · Fixed by #316
Assignees
Milestone

Comments

@cornelinux
Copy link
Member

I enrolled a day password token with 12h. In my TZ in runs from 2am -> 2pm -> 2am.

It works great in the morning.
In the afternoon, at 3pm it correctly says it is valid till "next day, 2am".

But if I toggle the display, it shows a wrong remaining time.

At 3:11pm it says: "remaining time 2:02:55" which does not sound right.
It seems there is a problem in calculating the remaining time from one day to the other.
At 3:11pm the remaining time should be: 10:49:00

@frankmer frankmer self-assigned this Sep 15, 2023
@frankmer frankmer linked a pull request Sep 15, 2023 that will close this issue
@frankmer
Copy link
Collaborator

Fixed by 402016 update: On some devices, the countdown stops when the application is in the background. Fixed by recalculating the remaining time on resume.

@frankmer frankmer added this to the 4.2.2 milestone Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants