Skip to content

Commit 38288e2

Browse files
authored
Get timezone from the supervisor and use it in Z2M container (#770)
1 parent f90fe7f commit 38288e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

common/rootfs/docker-entrypoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ function export_config() {
8787
export_config 'mqtt'
8888
export_config 'serial'
8989

90+
export TZ="$(bashio::supervisor.timezone)"
91+
9092
if (bashio::config.is_empty 'mqtt' || ! (bashio::config.has_value 'mqtt.server' || bashio::config.has_value 'mqtt.user' || bashio::config.has_value 'mqtt.password')) && bashio::var.has_value "$(bashio::services 'mqtt')"; then
9193
if bashio::var.true "$(bashio::services 'mqtt' 'ssl')"; then
9294
export ZIGBEE2MQTT_CONFIG_MQTT_SERVER="mqtts://$(bashio::services 'mqtt' 'host'):$(bashio::services 'mqtt' 'port')"

0 commit comments

Comments
 (0)