claabs / epicgames-freegames-node

Automatically login and find available free games the Epic Games Store. Sends you a prepopulated checkout link so you can complete the checkout after logging in. Supports multiple accounts, login sessions, and scheduled runs.
https://hub.docker.com/r/charlocharlie/epicgames-freegames
MIT License
1.37k stars 93 forks source link

Timezone not being set #130

Closed 2relativ closed 3 years ago

2relativ commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

claabs commented 3 years ago

Fixed in v4: https://github.com/claabs/epicgames-freegames-node/releases/tag/v4.0.0