SAIC-iSmart-API / saic-python-mqtt-gateway

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible add a new environment variable to configure the timezone?

ppnacho opened this issue · comments

The default timezone is America, if it is possible add an environment variable TZ to configure the timezone. Thanks

TZ variable is already working on the docker compose

Ah, OK, Sorry, in the documentation I don't see this variable.

The content in docker compose,

version: "3.1"

services:
saic-mqtt-gateway:
image: "saicismartapi/saic-python-mqtt-gateway:latest"
container_name: "saic-mqtt-gateway"
environment:
- MQTT_URI=${MQTT_BROKER_URI}
- MQTT_USER=${MQTT_USERNAME}
- MQTT_PASSWORD=${MQTT_PWD}
- SAIC_USER=${SAIC_USERNAME}
- SAIC_PASSWORD=${SAIC_PWD}
volumes:
- ./charging-stations.json:/usr/src/app/charging-stations.json

I don't see the TZ in environment.

Thanks

Just add it in the environnement section it is a common environnement variable system based juste like the user and group ids one