proxmox/proxmox-sys
Lukas Wagner dc72878d37 sys: email: use epoch_to_rfc2822 from proxmox_time
`strftime`'s formatting is locale-dependent. If the system locale was
set to e.g. de_DE.UTF-8, the `Date` header became invalid
(e.g Mo instead of Mon for 'Monday'), tripping up some mail clients
(e.g. KMail).

This commit should fix this by using the new `epoch_to_rfc2822`
function from proxmox_time. Under the hood, this function uses
`strftime_l` with a fixed locale (C).

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2024-01-08 12:04:47 +01:00
..
debian sys: bump to 0.5.2-1 2023-11-29 15:26:21 +01:00
src sys: email: use epoch_to_rfc2822 from proxmox_time 2024-01-08 12:04:47 +01:00
tests sys: rust fmt 2022-04-10 17:39:31 +02:00
Cargo.toml sys: bump to 0.5.2-1 2023-11-29 15:26:21 +01:00