From f6ddebc76005d16a0db349d0b7b48ffb043939c6 Mon Sep 17 00:00:00 2001 From: Ben Hardill Date: Fri, 13 Dec 2024 10:32:25 +0000 Subject: [PATCH] Add device agent docker timezone docs fixes #4628 --- docs/device-agent/install.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/device-agent/install.md b/docs/device-agent/install.md index 087eadbeda..5805e2e50e 100644 --- a/docs/device-agent/install.md +++ b/docs/device-agent/install.md @@ -71,6 +71,14 @@ services: - /path/to/device.yml:/opt/flowfuse-device/device.yml ``` +#### Time Zone + +In order to ensure that the device agent runs with the correct timezone environment variable is set with the `-e` option + +```bash +docker run -e TZ=Europe/London --mount type=bind,src=/path/to/device.yml,target=/opt/flowfuse-device/device.yml -p 1880:1880 flowfuse/device-agent:latest +``` + ## Configuration The agent configuration is provided by a `device.yml` file within its working