]> git.proxmox.com Git - pve-installer.git/commitdiff
auto-installer: support UTC as timezone
authorChristoph Heiss <c.heiss@proxmox.com>
Tue, 23 Apr 2024 11:29:50 +0000 (13:29 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 23 Apr 2024 13:18:15 +0000 (15:18 +0200)
Reported-by: Fiona Ebner <f.ebner@proxmox.com>
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxmox-auto-installer/src/utils.rs

index 02c27d8351056b904a48f45b0908bead534ac7bb..1912e518ef7a13a5b1dd630aa54e25ac40cda1e0 100644 (file)
@@ -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(())
 }