Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timezone not being set #130

Closed
2relativ opened this issue Aug 5, 2021 · 4 comments
Closed

Timezone not being set #130

2relativ opened this issue Aug 5, 2021 · 4 comments

Comments

@2relativ
Copy link

2relativ commented Aug 5, 2021

The line in my Config file looks like the following:
"TZ": "Europe/Berlin",
This ist written right after "runOnce": false and before "loglevel": "info" in the example config file.
But the timezone is not being set accordingly.
Also, when running once, the log doesn't even set the timezone to Los Angeles but stays UTC.

Do I Have to place this in a special way? Maybe update the example config to show how to set TZ with an value.

@2relativ
Copy link
Author

2relativ commented Aug 5, 2021

to specify, it looks (partly) like this:
"onlyWeekly": true,
"runOnStartup": true,
"runOnce": true,
"TZ": "Europe/Berlin",
"logLevel": "info",

No error in the logs, games are purchased (but not in onlyweekly false as described in a different thread, thats why i was looking in the logs)

@claabs
Copy link
Owner

claabs commented Aug 8, 2021

TZ is one of the configs that can only be set as an environment variable, since it's used by an OS-level utility. Unfortunately, a JSON config won't work in it's current state.

I'll keep this open until I clarify it in the docs, or find a way to set it from JSON.

@2relativ
Copy link
Author

2relativ commented Aug 8, 2021

Ok. For my Environment: Im running Unraid with correct timezone on the OS Level.

Repository owner deleted a comment from jopais2 Aug 11, 2021
@claabs claabs mentioned this issue Oct 2, 2021
@claabs
Copy link
Owner

claabs commented Oct 2, 2021

@claabs claabs closed this as completed Oct 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants