bitwarden / bitwarden/server

Timezone not functional, breaks 2fa

Open
#6,190 1 comment 0 reactions 0 assignees View on GitHub
bug bw-lite-deploy
Dominant language
C#
Stars
20.1k
Forks
1.8k
Avg merge
4d 8h
Merged PRs (30d)
75

Description

### Steps To Reproduce

Add TZ=Europe/Amsterdam to the ENV
Recreate the container
```
docker exec bitwarden date
```

### Expected Result

The datetime of the chosen TZ

### Actual Result

UTC datetime

### Screenshots or Videos

_No response_

### Additional Context

Breaks 2fa generators

### Githash Version

776f9598-dirty

### Environment Details

- Gentoo ~X64
- Docker 28.2.2

### Database Image

MariaDB 12.0.2

### Issue-Link

https://github.com/bitwarden/server/issues/2480

### Issue Tracking Info

- [x] I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the linked issue and the container timezone configuration, then reproduce the report with TZ=Europe/Amsterdam and `docker exec bitwarden date`. Done means the container reports the chosen timezone after recreation and 2FA generators no longer use the wrong time.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
authentication, backend, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.