Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Bitwarden: Wrong timezone makes TOTP unusable on sites

    Vaultwarden
    2
    3
    1227
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • necrevistonnezr
      necrevistonnezr last edited by

      I just tried to log into Bitwarden in a new browser and enter the TOTP code generated by Authy.
      It was 08:23 here in Germany (UTC +2).
      However, Bitwarden throws the following error:

      Invalid TOTP code! Server time: 2020-09-25 06:23:46 UTC IP: 127.0.0.1

      Screenshot 2020-09-25 082418.png

      Something similar happens when I try to modify my Amazon account...

      My server has the following time zone:

      timedatectl
                            Local time: Fr 2020-09-25 08:28:51 CEST
                        Universal time: Fr 2020-09-25 06:28:51 UTC
                              RTC time: Fr 2020-09-25 06:28:51
                             Time zone: Europe/Berlin (CEST, +0200)
             System clock synchronized: yes
      systemd-timesyncd.service active: yes
                       RTC in local TZ: no
      

      So I guess the Bitwarden App has the wrong time zone?

      1 Reply Last reply Reply Quote 0
      • nebulon
        nebulon Staff last edited by

        Looks like the bitwarden app needs a setting to allow modifying the timezone then.

        Do you know if this works if your server/host timezone is set to UTC and thus everything including bitwarden is UTC?

        1 Reply Last reply Reply Quote 0
        • necrevistonnezr
          necrevistonnezr last edited by

          sudo dpkg-reconfigure tzdata
          
          Current default time zone: 'Etc/UTC'
          Local time is now:      Fri Sep 25 09:36:14 UTC 2020.
          Universal Time is now:  Fri Sep 25 09:36:14 UTC 2020.
          

          It now works with the Bitwarden login but not with Amazon - I also contacted Amazon - apparently they have a problem on their side!

          1 Reply Last reply Reply Quote 2
          • First post
            Last post
          Powered by NodeBB