Closed dariuskt closed 1 month ago
Hello, just mount /etc/timezone
and /etc/localtime
from the host:
docker run --rm -it -v /etc/timezone:/etc/timezone:ro /etc/localtime:/etc/localtime:ro bluenviron/mediamtx
we cannot add tzdata
or any other packet to the base image since it's not based on any Operative System, while the -ffmpeg
image is based on Alpine and the -rpi
image is based on Raspbian.
Which version are you using?
docker image latest-ffmpeg v1.8.2
Which operating system are you using?
Describe the issue
files saved in UTC while should be saved in provided timezone
Describe how to replicate the issue
setting filenames to contain time
starting container with timezone set:
observe filename time is in UTC
Did you attach the server logs?
no
Did you attach a network dump?
no
Solution
installing tzdata inside container fixes the problem for this run
hope image will contain tzdata by default so timezones will work out of the box