From: Lukas Wagner <l.wagner@proxmox.com>
To: pbs-devel@lists.proxmox.com, pve-devel@lists.proxmox.com
Subject: Re: [pve-devel] [PATCH proxmox 4/5] time: posix: add epoch_to_rfc2822
Date: Mon, 11 Dec 2023 14:06:21 +0100 [thread overview]
Message-ID: <ce19c267-c01c-4778-9449-793cfceb0465@proxmox.com> (raw)
In-Reply-To: <20231205121142.169542-5-l.wagner@proxmox.com>
On 12/5/23 13:11, Lukas Wagner wrote:
> diff --git a/proxmox-time/src/posix.rs b/proxmox-time/src/posix.rs
> +
> +#[test]
> +fn test_epoch_to_rfc2822() {
> + let epoch = 1609263000;
> + let formatted = epoch_to_rfc2822(epoch).unwrap();
> + assert_eq!(formatted, "Tue, 29 Dec 2020 18:30:00 +0100");
> +}
Just realized this testcase breaks in different time zones - will send a v2.
--
- Lukas
WARNING: multiple messages have this Message-ID
From: Lukas Wagner <l.wagner@proxmox.com>
To: pbs-devel@lists.proxmox.com, pve-devel@lists.proxmox.com
Subject: Re: [pbs-devel] [PATCH proxmox 4/5] time: posix: add epoch_to_rfc2822
Date: Mon, 11 Dec 2023 14:06:21 +0100 [thread overview]
Message-ID: <ce19c267-c01c-4778-9449-793cfceb0465@proxmox.com> (raw)
In-Reply-To: <20231205121142.169542-5-l.wagner@proxmox.com>
On 12/5/23 13:11, Lukas Wagner wrote:
> diff --git a/proxmox-time/src/posix.rs b/proxmox-time/src/posix.rs
> +
> +#[test]
> +fn test_epoch_to_rfc2822() {
> + let epoch = 1609263000;
> + let formatted = epoch_to_rfc2822(epoch).unwrap();
> + assert_eq!(formatted, "Tue, 29 Dec 2020 18:30:00 +0100");
> +}
Just realized this testcase breaks in different time zones - will send a v2.
--
- Lukas
next prev parent reply other threads:[~2023-12-11 13:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-05 12:11 [pve-devel] [PATCH proxmox 0/5] sys: email: always format 'Date' header with C locale Lukas Wagner
2023-12-05 12:11 ` [pbs-devel] " Lukas Wagner
2023-12-05 12:11 ` [pve-devel] [PATCH proxmox 1/5] time: posix: use strftime from the `libc` crate Lukas Wagner
2023-12-05 12:11 ` [pbs-devel] " Lukas Wagner
2023-12-05 12:11 ` [pve-devel] [PATCH proxmox 2/5] time: posix: inline vars in string formatting Lukas Wagner
2023-12-05 12:11 ` [pbs-devel] " Lukas Wagner
2023-12-05 12:11 ` [pve-devel] [PATCH proxmox 3/5] time: posix: add bindings for strftime_l Lukas Wagner
2023-12-05 12:11 ` [pbs-devel] " Lukas Wagner
2023-12-05 12:11 ` [pve-devel] [PATCH proxmox 4/5] time: posix: add epoch_to_rfc2822 Lukas Wagner
2023-12-05 12:11 ` [pbs-devel] " Lukas Wagner
2023-12-11 13:06 ` Lukas Wagner [this message]
2023-12-11 13:06 ` Lukas Wagner
2023-12-05 12:11 ` [pve-devel] [PATCH proxmox 5/5] sys: email: use `epoch_to_rfc2822` from proxmox_time Lukas Wagner
2023-12-05 12:11 ` [pbs-devel] " Lukas Wagner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ce19c267-c01c-4778-9449-793cfceb0465@proxmox.com \
--to=l.wagner@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.