google / google-authenticator-libpam

Apache License 2.0
1.75k stars 280 forks source link

Getting the time that google-authenticator is using #223

Closed bahjat1993 closed 1 year ago

bahjat1993 commented 1 year ago

System information

Operating system: Ubuntu 20

How do i get the time that my google authenticator is using? It keeps giving me an incorrect time however i know for a fact my ubuntu machine has the correct time

ThomasHabets commented 1 year ago

It's using the system time: https://github.com/google/google-authenticator-libpam/blob/master/src/pam_google_authenticator.c#L762