paolostivanin / OTPClient

Highly secure and easy to use OTP client written in C/GTK3 that supports both TOTP and HOTP
GNU General Public License v3.0
459 stars 48 forks source link

OTPClient gives wrong codes when system time is local time #304

Closed rogerkeays closed 10 months ago

rogerkeays commented 11 months ago

My system clock uses the local time instead of the tradition UTC, and I found that my TOTP codes from otpclient don't work. Does otpclient support this configuration? Maybe I am doing something else wrong. My clock is accurate to 2 seconds.

version 2.4.2 (debian 10)

paolostivanin commented 11 months ago

Hello, OTPClient (well, libcotp to be correct) doesn't care about whether your clock is configured using localtime or UTC. It simply gets the current time and uses that to generate the totp. If the system clock is not correct, there's nothing we can do about it. I'm not really sure how to help here 🤔

rogerkeays commented 11 months ago

Got it working. I think the website broke because I hit the back button. Thanks for the help anyway.

rogerkeays commented 10 months ago

Closing as invalid.