dani-garcia / vaultwarden

Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden_rs
GNU Affero General Public License v3.0
38.47k stars 1.87k forks source link

Incorrect timezone in email message "New Device Logged In From" #942

Closed andpp closed 4 years ago

andpp commented 4 years ago

Subject of the issue

I changed timezone in Dockerfile to my local TZ and created bitwarden_rs container with correct timezone. All logs have correct timestamp. Running 'date' command inside container shows correct date. However in information emails I still receive time in UTC zone. All timezone settings inside the container are correct.

Your environment

Dockerfile I use:

FROM bitwardenrs/server:latest
 RUN rm /etc/localtime; ln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime; echo -n America/Los_Angeles >/etc/timezone
 WORKDIR /
 CMD ["/bitwarden_rs"]

Steps to reproduce

Your account was just logged into from a new device.

Date: Tuesday, March 31, 2020 at 18:54 <- UTC timezone IP Address: Device Type: Chrome

Expected behaviour

Date should be according to docker's container timezone

Actual behaviour

Date in UTC

andpp commented 4 years ago

Fixed after upgrade to the latest release. Closing.