core: Improve timezone detection

This commit is contained in:
CanbiZ
2025-11-22 17:56:50 +01:00
parent b6a47aa6c5
commit 156d6e46a1

View File

@@ -936,7 +936,12 @@ install_script() {
systemctl -q stop ping-instances.service
fi
NEXTID=$(pvesh get /cluster/nextid)
# Read timezone - fallback for Debian 13/Proxmox 9+ where /etc/timezone doesn't exist
if [[ -f /etc/timezone ]]; then
timezone=$(cat /etc/timezone)
else
timezone=$(timedatectl show --value --property=Timezone 2>/dev/null || echo "UTC")
fi
header_info
while true; do