Yubico / python-yubico

Python code to talk to YubiKeys
https://developers.yubico.com/python-yubico/
BSD 2-Clause "Simplified" License
229 stars 33 forks source link

yubikey-totp uses wrong time #6

Closed dainnilsson closed 10 years ago

dainnilsson commented 10 years ago

time.mktime expects a time tuple in localtime, but gets one in GTM, which produces the wrong timestamp. Use time.time() instead.