[GH-ISSUE #137] Time zone #88

Closed
opened 2026-10-15 12:56:10 +00:00 by bsakaguchi · 5 comments
Owner

Originally created by @csrednicki on GitHub (Oct 9, 2024).
Original GitHub issue: https://github.com/games-on-whales/wolf/issues/137

Hi, first of all thank you for this great gaming solution :) Second, I want to set my timezone correctly. Currently it is showing like this:
image
which is two hours late compared to my local time.
How can I change time zone (Europe/Poland) using docker compose file ?

Originally created by @csrednicki on GitHub (Oct 9, 2024). Original GitHub issue: https://github.com/games-on-whales/wolf/issues/137 Hi, first of all thank you for this great gaming solution :) Second, I want to set my timezone correctly. Currently it is showing like this: ![image](https://github.com/user-attachments/assets/44f7a80d-eedb-4495-919d-ae2a01650d1d) which is two hours late compared to my local time. How can I change time zone (Europe/Poland) using docker compose file ?
Author
Owner

@ABeltramo commented on GitHub (Oct 9, 2024):

Timezone should be as simple as setting the TZ env variable, ex:

docker run -e TZ=Europe/Warsaw --rm -it --entrypoint date ghcr.io/games-on-whales/base-app:edge
Wed Oct  9 21:21:56 CEST 2024

You'll have to set this additional env variable in all the apps defined in your config.toml, see the docs linked below on how to do it.

The us there in your screenshot refers to the keyboard layout instead, you can see how to change that in the docs.

Feel free to re-open if this doesn't work!

<!-- gh-comment-id:2403280908 --> @ABeltramo commented on GitHub (Oct 9, 2024): Timezone should be as simple as setting the `TZ` env variable, ex: ``` docker run -e TZ=Europe/Warsaw --rm -it --entrypoint date ghcr.io/games-on-whales/base-app:edge Wed Oct 9 21:21:56 CEST 2024 ``` You'll have to set this additional env variable in all the apps defined in your `config.toml`, see the docs linked below on how to do it. The `us` there in your screenshot refers to the keyboard layout instead, you can see how to change that in the [docs](https://games-on-whales.github.io/wolf/stable/user/configuration.html#_changing_and_switching_keyboard_layouts_in_wolf_apps_containers). Feel free to re-open if this doesn't work!
Author
Owner

@csrednicki commented on GitHub (Oct 10, 2024):

Hi, @ABeltramo thanks for quick reply. I followed your instructions but it worked half part. Below is my definition of Steam application with added TZ env var and screenshot when it was running with opened shell window.
image
As you see shell is recognizing changed time zone but Sway is not. I'm guessing TZ env variable is not passed to Sway correctly.

[[apps]]
start_virtual_compositor = true
title = "Steam"

[apps.runner]
base_create_json = """
{
  "HostConfig": {
    "IpcMode": "host",
    "CapAdd": ["SYS_ADMIN", "SYS_NICE", "SYS_PTRACE", "NET_RAW", "MKNOD", "NET_ADMIN"],
    "SecurityOpt": ["seccomp=unconfined", "apparmor=unconfined"],
    "Ulimits": [{"Name":"nofile", "Hard":10240, "Soft":10240}],
    "Privileged": false,
    "DeviceCgroupRules": ["c 13:* rmw", "c 244:* rmw"]
  }
}
"""
ports = []
devices = []
env = [
  "PROTON_LOG=1",
  "TZ=Europe/Warsaw",
  "RUN_SWAY=true",
  "GOW_REQUIRED_DEVICES=/dev/input/* /dev/dri/* /dev/nvidia*",
]
mounts = []
image = "ghcr.io/games-on-whales/steam:edge"
name = "WolfSteam"
type = "docker"
<!-- gh-comment-id:2406192306 --> @csrednicki commented on GitHub (Oct 10, 2024): Hi, @ABeltramo thanks for quick reply. I followed your instructions but it worked half part. Below is my definition of Steam application with added TZ env var and screenshot when it was running with opened shell window. ![image](https://github.com/user-attachments/assets/c4747d36-1a18-46a5-8420-e1f064599b7f) As you see shell is recognizing changed time zone but Sway is not. I'm guessing TZ env variable is not passed to Sway correctly. ``` [[apps]] start_virtual_compositor = true title = "Steam" [apps.runner] base_create_json = """ { "HostConfig": { "IpcMode": "host", "CapAdd": ["SYS_ADMIN", "SYS_NICE", "SYS_PTRACE", "NET_RAW", "MKNOD", "NET_ADMIN"], "SecurityOpt": ["seccomp=unconfined", "apparmor=unconfined"], "Ulimits": [{"Name":"nofile", "Hard":10240, "Soft":10240}], "Privileged": false, "DeviceCgroupRules": ["c 13:* rmw", "c 244:* rmw"] } } """ ports = [] devices = [] env = [ "PROTON_LOG=1", "TZ=Europe/Warsaw", "RUN_SWAY=true", "GOW_REQUIRED_DEVICES=/dev/input/* /dev/dri/* /dev/nvidia*", ] mounts = [] image = "ghcr.io/games-on-whales/steam:edge" name = "WolfSteam" type = "docker" ```
Author
Owner

@csrednicki commented on GitHub (Oct 13, 2024):

@ABeltramo Cannot reopen this issue. I see only comment button.

<!-- gh-comment-id:2409048133 --> @csrednicki commented on GitHub (Oct 13, 2024): @ABeltramo Cannot reopen this issue. I see only comment button.
Author
Owner

@ABeltramo commented on GitHub (Oct 13, 2024):

Sorry about that, I'll look into it. We are probably missing a call to tzselect somewhere..

<!-- gh-comment-id:2409062953 --> @ABeltramo commented on GitHub (Oct 13, 2024): Sorry about that, I'll look into it. We are probably missing a call to `tzselect` somewhere..
Author
Owner

@ABeltramo commented on GitHub (Oct 28, 2024):

This turned out to be a specific issue with Waybar clock, I've applied this workaround for now.

You should be able to test it out by just updating the images using:

docker pull ghcr.io/games-on-whales/steam:edge
<!-- gh-comment-id:2442573433 --> @ABeltramo commented on GitHub (Oct 28, 2024): This turned out to be a specific issue with Waybar clock, I've applied [this workaround](https://github.com/Alexays/Waybar/issues/3575#issuecomment-2338813343) for now. You should be able to test it out by just updating the images using: ``` docker pull ghcr.io/games-on-whales/steam:edge ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
games-on-whales/wolf#88
No description provided.