Hello all. I have been having some trouble getting a container I have to log the correct time. The container in question is jellyfin from linuxserver.io. When I ran the docker-compose I had the ENV set to:
Code:
- TZ=America/New_york
Although the first time in brackets is local time the "time:" is UTC which is causing me problems when trying to use fail2ban. Example:
Code:
{"log":"[12:25:06] [INF] [1] Main: Jellyfin version: 10.5.5\n","stream":"stdout","time":"2020-06-08T16:25:06.963554149Z"}
I am using Portainer for my containers and tried to add a volume to bind
Code:
/etc/timezone:/etc/timezone:ro
/etc/localtime:/etc/localtime:ro
Portiner gave me errors when trying to deploy the container so then I did ther same via command line but still no luck.
I also tried this but received an error:
Code:
sudo docker exec -it jellyfin /bin/bash
root@9d0ca5a7db50:/# date +%T -s "18:47:00"
date: cannot set date: Operation not permitted
18:47:00
I'm not sure what else to try to get the "time:" portion of the jellyfin container logs to be in EDT not UTC.
Any help would be great.
Thank you