kryskool / yubico-yubiserve

Automatically exported from code.google.com/p/yubico-yubiserve
GNU General Public License v3.0
1 stars 1 forks source link

Timestamp in OTP is in local timezone instead of UTC #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The timestamp returned for Yubikey OTP requests is in the local timezone and 
not in UTC, as expected. The time string is built with strftime() which uses 
localtime() by default.

Here is the fix:

iso_time = time.strftime("%Y-%m-%dT%H:%M:%S", time.gmtime())

Original issue reported on code.google.com by gc...@byte-storm.com on 8 Feb 2015 at 4:05