istepanov / docker-mongodump

Docker image with mongodump, cron task and upload to AWS S3
https://hub.docker.com/repository/docker/istepanov/mongodump
MIT License
100 stars 78 forks source link

Timezone Problem #11

Open muzaffersenkal opened 4 years ago

muzaffersenkal commented 4 years ago

Hi,

The time zone in the container is correct. I checked with docker exec. But the time in the saved filename is wrong. Do you have any idea ?


      image: istepanov/mongodump:4.2
      volumes:
        - ./mongodb/backup/:/backup
      environment:
        MONGO_URI: mongodb://root:password@mongodb:27017/covid19?authSource=admin
        CRON_SCHEDULE: "*/5 * * * *"
        TZ: Europe/Istanbul
      depends_on:
        - mongodb```