make a syslink to get correct timezone

This commit is contained in:
2023-06-21 14:52:33 +02:00
parent 10d564dd30
commit f1f90d0555
+1
View File
@@ -116,6 +116,7 @@ function set_timezone {
if [ "$TZ" != "" ]; then if [ "$TZ" != "" ]; then
echo "* Setting Timezone to $TZ" echo "* Setting Timezone to $TZ"
echo "TZ=$TZ" > /etc/environment echo "TZ=$TZ" > /etc/environment
ln -sf "/usr/share/zoneinfo/$TZ" /etc/localtime
else else
echo "* Timezone not set - Use UTC Time" echo "* Timezone not set - Use UTC Time"
fi fi