diff --git a/.env.example b/.env.example index b8370c5..81e0e12 100644 --- a/.env.example +++ b/.env.example @@ -14,3 +14,6 @@ INFLUX_ORG=solectrus # Customize InfluxDB storage INFLUX_BUCKET=my-solectrus-bucket INFLUX_MEASUREMENT=Tibber + +# Timezone +TZ=Europe/Berlin diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 50f21d7..9732688 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -21,6 +21,7 @@ jobs: env: CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} CI: true + TZ: Europe/Berlin steps: - name: Checkout the code diff --git a/Dockerfile b/Dockerfile index 843f746..ff1c0d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,9 @@ RUN bundle config --local frozen 1 && \ FROM ruby:3.2.2-alpine LABEL maintainer="georg@ledermann.dev" +# Add tzdata to get correct timezone +RUN apk add --no-cache tzdata + # Decrease memory usage ENV MALLOC_ARENA_MAX 2