[pve-devel] [PATCH installer] auto-installer: support UTC as timezone

Christoph Heiss c.heiss at proxmox.com
Tue Apr 23 13:29:50 CEST 2024


Reported-by: Fiona Ebner <f.ebner at proxmox.com>
Signed-off-by: Christoph Heiss <c.heiss at 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





More information about the pve-devel mailing list