-
Notifications
You must be signed in to change notification settings - Fork 74
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
Failed to get TZ variables in container #123
Comments
I have the same problem. Puppeteer has an option to emulate a timezone. Maybe this would help. |
Try setting the user timezone in Profile > User Settings > Time Zone to This solved the issue of it reverting to UTC for me Edit: this needs to be set for the user who you generated the access token for |
FYI, I had the same problem and just adding the environment parameter RENDERING_DELAY=1000 (1 second delay) |
After a deeper research, I found that the RENDERING_DELAY is not the only parameter that is currently affecting the TZ shifting when rendering. I also added:
to my docker-compose.yml and most of my lovelace cards started to work properly. However, my Weather Chart Card is still showing times in UTC in rendered image. On the other hand the Lovelace Horizon Card works properly with this approach. |
Hi, I have started the container and the process is working fine, it is generating the screenshot and it is loading properly in the Kindle, but I have an issue with the timezone. It seems that the container is not getting the timezone variable correctly. This is a problem because the rendering process (I image because of the browser) is getting that time instead of my local time.
Response of the date command inside the container, showing UTC and -2 hours (matches the result of the screenshot):
I also attach the image of the current ha dashboard and the output screenshot. The local zona is also configured within the HA, indeed in the dashboard it is correctly displayed, so it is a problem with the container. You can see the differences in the lower card but the upper card seems to work properly. Does anyone have the same issue? This is the card horizon-card
I tried installing tzdata inside the container using
apk add --update tzdata
and now the time and timezone is ok, as can be seen in the command below, but the screenshot is still showing the wrong time:Any ideas on how to solve this?
The text was updated successfully, but these errors were encountered: