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

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

Re: [OATH-Toolkit-help] Oathtool keeps using UTC time, while localtime i


From: Oleksii Vilchanskyi
Subject: Re: [OATH-Toolkit-help] Oathtool keeps using UTC time, while localtime is needed
Date: Mon, 10 Sep 2018 13:20:33 +0000

On Sat, Sep 8, 2018 at 9:02 PM Oleksii Vilchanskyi
<address@hidden> wrote:
>
> 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.

Oh well. It works today. Maybe I was one reboot away from it. Sorry for the
noise.



reply via email to

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