diff --git a/birdnet-pi/rootfs/custom-services.d/01-avahi.sh b/birdnet-pi/rootfs/custom-services.d/01-avahi.sh index 1963c3d25..0525aa1d8 100755 --- a/birdnet-pi/rootfs/custom-services.d/01-avahi.sh +++ b/birdnet-pi/rootfs/custom-services.d/01-avahi.sh @@ -4,6 +4,9 @@ until [[ -e /var/run/dbus/system_bus_socket ]]; do sleep 1s done +TZ_VALUE="$(timedatectl show -p Timezone --value)" +export TZ="$TZ_VALUE" + echo "Starting service: avahi daemon" exec \ avahi-daemon --no-chroot