Skip to content

Commit 156d6e4

Browse files
committed
core: Improve timezone detection
1 parent b6a47aa commit 156d6e4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

misc/build.func

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,12 @@ install_script() {
936936
systemctl -q stop ping-instances.service
937937
fi
938938
NEXTID=$(pvesh get /cluster/nextid)
939-
timezone=$(cat /etc/timezone)
939+
# Read timezone - fallback for Debian 13/Proxmox 9+ where /etc/timezone doesn't exist
940+
if [[ -f /etc/timezone ]]; then
941+
timezone=$(cat /etc/timezone)
942+
else
943+
timezone=$(timedatectl show --value --property=Timezone 2>/dev/null || echo "UTC")
944+
fi
940945
header_info
941946
while true; do
942947

0 commit comments

Comments
 (0)