mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[GH-ISSUE #1268] Bitwarden not respecting the hosts & container timezone & manually set timezone. #887
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#887
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @iqfx on GitHub (Dec 12, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/1268
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
Relevant logs
idk, if you need any. No errors are showing.
@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.
@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):
Excuse me, fixed it. My own PC was about 50 seconds behind the time.
I just ran
$ timedatectl set-ntp true@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 :).