oath-toolkit-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OATH-Toolkit-help] Oathtool keeps using UTC time, while localtime is ne


From: Oleksii Vilchanskyi
Subject: [OATH-Toolkit-help] Oathtool keeps using UTC time, while localtime is needed
Date: Sat, 8 Sep 2018 21:02:51 +0000

Hello,

I am trying to generate a TOTP for Google account. I am using the
secret both on Android (through Google Authenticator) and on Linux
(through oathtool), so that I can see when it differs. My local time
is linked to etc/localtime:
% ls -l /etc/localtime
lrwxrwxrwx 1 root root 33 Sep  8 18:07 /etc/localtime ->
/usr/share/zoneinfo/Europe/Prague

% date
Sat Sep  8 22:57:09 CEST 2018

% timedatectl status
               Local time: Sat 2018-09-08 22:58:15 CEST
           Universal time: Sat 2018-09-08 20:58:15 UTC
                 RTC time: Sat 2018-09-08 20:58:15
                Time zone: Europe/Prague (CEST, +0200)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

What have I tried:
% oathtool -v --base32 --totp <secret>
% ... different parameters to --totp= ...
% ... different parameters to --now, the most obvious being --now="$(date)" ...

In all cases I get "Current time: ... UTC", being 2 hours less than
needed (because CEST is +2).

How do I fix this? What is wrong? I have never had any issues with
oathtool before a fresh Arch Linux reinstallation today.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]