From: Christoph Heiss <c.heiss@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH installer] auto-installer: support UTC as timezone
Date: Tue, 23 Apr 2024 13:29:50 +0200 [thread overview]
Message-ID: <20240423112951.544338-1-c.heiss@proxmox.com> (raw)
Reported-by: Fiona Ebner <f.ebner@proxmox.com>
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
---
proxmox-auto-installer/src/utils.rs | 3 +++
1 file changed, 3 insertions(+)
diff --git a/proxmox-auto-installer/src/utils.rs b/proxmox-auto-installer/src/utils.rs
index 02c27d8..1912e51 100644
--- a/proxmox-auto-installer/src/utils.rs
+++ b/proxmox-auto-installer/src/utils.rs
@@ -280,13 +280,16 @@ pub fn verify_locale_settings(answer: &Answer, locales: &LocaleInfo) -> Result<(
if !locales.kmap.keys().any(|i| i == &answer.global.keyboard) {
bail!("keyboard layout '{}' is not valid", &answer.global.keyboard);
}
+
if !locales
.cczones
.iter()
.any(|(_, zones)| zones.contains(&answer.global.timezone))
+ && answer.global.timezone != "UTC"
{
bail!("timezone '{}' is not valid", &answer.global.timezone);
}
+
Ok(())
}
--
2.44.0
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next reply other threads:[~2024-04-23 11:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-23 11:29 Christoph Heiss [this message]
2024-04-23 14:32 ` [pve-devel] applied: " Thomas Lamprecht
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=20240423112951.544338-1-c.heiss@proxmox.com \
--to=c.heiss@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox