mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-05-13 07:03:58 +00:00
Use local time in email notifications for new device logins
In this implementation, the `TZ` environment variable must be set in order for the formatted output to use a more user-friendly time zone abbreviation (e.g., `UTC`). Otherwise, the output uses the time zone's UTC offset (e.g., `+00:00`).
This commit is contained in:
parent
77e47ddd1f
commit
a28ebcb401
4 changed files with 52 additions and 12 deletions
|
@ -62,8 +62,9 @@ ring = "0.16.15"
|
|||
# UUID generation
|
||||
uuid = { version = "0.8.1", features = ["v4"] }
|
||||
|
||||
# Date and time librar for Rust
|
||||
chrono = "0.4.12"
|
||||
# Date and time libraries
|
||||
chrono = "0.4.13"
|
||||
chrono-tz = "0.5.2"
|
||||
time = "0.2.16"
|
||||
|
||||
# TOTP library
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue