linuxserver / docker-resilio-sync

GNU General Public License v3.0
145 stars 25 forks source link

How to add timezone? #14

Closed ghost closed 6 years ago

ghost commented 6 years ago

linuxserver.io

OS: Unraid 6.4.1 Default template settings

I'd like to add a timezone so I can use the weekly scheduled settings.

docker exec -it Sync /bin/bash
date

The date is about 15 hours ahead.

Thanks, team linuxserver.io

thelamer commented 6 years ago

You need to pass the TZ variable to the container, I will create a pull request to update the readme it should be included: IE:

-e TZ=US/Eastern
sparklyballs commented 6 years ago

unraid sets it automatically with dockers

sparklyballs commented 6 years ago

you need to check your unraid system timezone because unraid automatically add TZ to the run line of any docker

thelamer commented 6 years ago

@sparklyballs tested and created pull request to update the readme, even if this does not directly apply to unraid should be in the readme no ?

ghost commented 6 years ago

unraid sets it automatically with dockers you need to check your unraid system timezone because unraid automatically add TZ to the run line of any docker

Is this under Unraid>Settings>DateTime? Because I have it set correctly yet it's not correct in most of my docker containers :( I've checked the host machine's date output, and it's correct.

Anyways, thanks for letting me know!

ghost commented 6 years ago

I added the appropriate TZ variable, yet it doesn't seem to be the right time, still?

tobbenb commented 6 years ago

Might be better to open a thread on the unraid forum about this. More people watching there and it also looks like the problem is unraid related. Post your docker run command, screenshot of date output in both unraid and container and time and date settings of unraid.

ghost commented 6 years ago
docker run -d --name='Sync' --net='bridge' -e TZ="Australia/Perth" -e HOST_OS="unRAID" -p '8888:8888/tcp' -p '5555:5555/tcp' -p '3838:3838/udp' -v '/path/to/volume/':'/path':'rw' -v '/mnt/user/appdata/Sync':'/config':'rw' 'limetech/sync'

The command finished successfully!

I'll create a thread on the Unraid forum, thanks

edit: was using the wrong container all along.. fixed now.