linuxserver / docker-smokeping

GNU General Public License v3.0
347 stars 95 forks source link

Time zone is not correct #95

Closed rolandu closed 4 years ago

rolandu commented 4 years ago

Expected Behavior

The container's time zone should be either my local time zone (i.e. the Docker server's native) or UTC.

Current Behavior

Container's time zone is BST (British Summer Time), which is neither my local time zone nor UTC. This affects all the graphs in the web interface, for me they show an hour behind even though they are current.

Steps to Reproduce

docker-compose exec smokeping date
Sun Aug 23 16:07:12 BST 2020

Attempted solution

The recommended solution I found online was to add two volumes and restart the container, but this did not help:

- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"

Environment

OS: Debian GNU/Linux 10 (buster) CPU architecture: x86_64 How docker service was installed: (installed through apt) docker-compose version 1.24.1, build 4667896b

Command used to create docker container (run/create/compose/screenshot)

default docker-compose file from https://hub.docker.com/r/linuxserver/smokeping

Docker logs

smokeping    | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
smokeping    | [s6-init] ensuring user provided files have correct perms...exited 0.
smokeping    | [fix-attrs.d] applying ownership & permissions fixes...
smokeping    | [fix-attrs.d] done.
smokeping    | [cont-init.d] executing container initialization scripts...
smokeping    | [cont-init.d] 01-envfile: executing... 
smokeping    | [cont-init.d] 01-envfile: exited 0.
smokeping    | [cont-init.d] 10-adduser: executing... 
smokeping    | 
smokeping    | -------------------------------------
smokeping    |           _         ()
smokeping    |          | |  ___   _    __
smokeping    |          | | / __| | |  /  \ 
smokeping    |          | | \__ \ | | | () |
smokeping    |          |_| |___/ |_|  \__/
smokeping    | 
smokeping    | 
smokeping    | Brought to you by linuxserver.io
smokeping    | -------------------------------------
smokeping    | 
smokeping    | To support LSIO projects visit:
smokeping    | https://www.linuxserver.io/donate/
smokeping    | -------------------------------------
smokeping    | GID/UID
smokeping    | -------------------------------------
smokeping    | 
smokeping    | User uid:    1000
smokeping    | User gid:    1000
smokeping    | -------------------------------------
smokeping    | 
smokeping    | [cont-init.d] 10-adduser: exited 0.
smokeping    | [cont-init.d] 30-config: executing... 
smokeping    | [cont-init.d] 30-config: exited 0.
smokeping    | [cont-init.d] 99-custom-files: executing... 
smokeping    | [custom-init] no custom files found exiting...
smokeping    | [cont-init.d] 99-custom-files: exited 0.
smokeping    | [cont-init.d] done.
smokeping    | [services.d] starting services
smokeping    | [services.d] done.
smokeping    | AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.22.0.2. Set the 'ServerName' directive globally to suppress this message
smokeping    | Smokeping version 2.007003 successfully launched.
smokeping    | Not entering multiprocess mode for just a single probe.
smokeping    | FPing: probing 5 targets with step 300 s and offset 175 s.
github-actions[bot] commented 4 years ago

Thanks for opening your first issue here! Be sure to follow the issue template!

aptalca commented 4 years ago

Post your compose yaml as requested

rolandu commented 4 years ago

Oh, this is embarassing. I should read what I am copying, then I would have seen that the setting is right there in the file. I am sorry. Closing this issue.

aptalca commented 4 years ago

No worries. That's exactly why we ask for all that info in the issue template 😉