Bitwarden not respecting the hosts & container timezone & manually set timezone. #4526

Closed
opened 2026-03-07 19:51:08 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @iqfx on GitHub (Dec 12, 2020).

Subject of the issue

Bitwarden does not respect timezone.

Your environment

Server Installed Ok
1.17.0
Server Latest
1.17.0
Web Installed Update
2.16.1
Web Latest
2.17.1

  • Bitwarden_rs version: Latest (just pulled before posting this)

  • Install method: Docker

  • Clients used: N/A

  • Reverse proxy and version: HA-Proxy version 1.6.15-1ppa1~xenial 2019/10/27

  • Other relevant information: The docker container has the right time set. (I manually entered the container and ran date to check)
    Just bitwarden seems to force UTC besides me setting europe/amsterdam. Also the docker host has the right time set. The time is of by 1 hour behind in the web interface.

Steps to reproduce

For this situation I only set tz: to europe/amsterdam in my docker-compose.yml

Expected behaviour

The correct time should be displayed on the admin page

Actual behaviour

Screenshot_2020-12-12_13-21-55

Relevant logs

idk, if you need any. No errors are showing.

Originally created by @iqfx on GitHub (Dec 12, 2020). <!-- # ### NOTE: Please update to the latest version of bitwarden_rs before reporting an issue! This saves you and us a lot of time and troubleshooting. See: https://github.com/dani-garcia/bitwarden_rs/issues/1180 # ### --> <!-- Please fill out the following template to make solving your problem easier and faster for us. This is only a guideline. If you think that parts are unnecessary for your issue, feel free to remove them. Remember to hide/obfuscate personal and confidential information, such as names, global IP/DNS addresses and especially passwords, if necessary. --> ### Subject of the issue Bitwarden does not respect timezone. ### Your environment Server Installed Ok 1.17.0 Server Latest 1.17.0 Web Installed Update 2.16.1 Web Latest 2.17.1 * Bitwarden_rs version: Latest (just pulled before posting this) * Install method: Docker * Clients used: N/A * Reverse proxy and version: HA-Proxy version 1.6.15-1ppa1~xenial 2019/10/27 * Other relevant information: The docker container has the right time set. (I manually entered the container and ran date to check) Just bitwarden seems to force UTC besides me setting europe/amsterdam. Also the docker host has the right time set. The time is of by 1 hour behind in the web interface. ### Steps to reproduce For this situation I only set tz: to europe/amsterdam in my docker-compose.yml ### Expected behaviour The correct time should be displayed on the admin page ### Actual behaviour ![Screenshot_2020-12-12_13-21-55](https://user-images.githubusercontent.com/39005172/101983739-4324dd00-3c7d-11eb-8845-2ea9d28de8c7.png) ### Relevant logs idk, if you need any. No errors are showing.
GiteaMirror added the enhancementlow priority labels 2026-03-07 19:51:08 -06:00
Author
Owner

@BlackDex commented on GitHub (Dec 12, 2020):

The diagnostics page is supposed to show the UTC timezone as it states (UTC). Also as a diagnostic to make sure MFA is working correctly. We could add a server timezone there also using the configured format from the settings. But we keep those values there as it is to prevent timezone configuration issues when comparing.

@BlackDex commented on GitHub (Dec 12, 2020): The diagnostics page is supposed to show the UTC timezone as it states (UTC). Also as a diagnostic to make sure MFA is working correctly. We could add a server timezone there also using the configured format from the settings. But we keep those values there as it is to prevent timezone configuration issues when comparing.
Author
Owner

@iqfx commented on GitHub (Dec 12, 2020):

MFA is not working. And i tried the same secret on authy and it works fine there.

@iqfx commented on GitHub (Dec 12, 2020): MFA is not working. And i tried the same secret on authy and it works fine there.
Author
Owner

@iqfx commented on GitHub (Dec 12, 2020):

Excuse me, fixed it. My own PC was about 50 seconds behind the time.
I just ran $ timedatectl set-ntp true

@iqfx commented on GitHub (Dec 12, 2020): Excuse me, fixed it. My own PC was about 50 seconds behind the time. I just ran `$ timedatectl set-ntp true`
Author
Owner

@BlackDex commented on GitHub (Dec 12, 2020):

Hmm... Well, if running bitwarden_rs and the browser on the same host with time-drift is occurring, maybe we should try to get an NTP also, and show and compare that too.
It's something ill put on the list :).

@BlackDex commented on GitHub (Dec 12, 2020): Hmm... Well, if running bitwarden_rs and the browser on the same host with time-drift is occurring, maybe we should try to get an NTP also, and show and compare that too. It's something ill put on the list :).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#4526