You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I set the "TIMEZONE" environment variable to a zone other than the one set on the host, GUI will reflect the changes, but when a Date object is created from a Javascript Agent, it will use the time zone of the host machine instead of the application.
Thanks for reporting the issue and pointing in the right direction @elvetemedve . It looks like setting the TZ environment variable has the same effect as configuring the timezone system wide. Would you mind testing the change I made in #1356?
When I set the "TIMEZONE" environment variable to a zone other than the one set on the host, GUI will reflect the changes, but when a
Date
object is created from a Javascript Agent, it will use the time zone of the host machine instead of the application.Steps to reproduce the issue:
Set up a docker container following this guide https://github.com/cantino/huginn/blob/master/docker/multi-process/README.md and set the
TIMEZONE=Budapest
environment variable too.Start the application
Create a new Javascript Agent, give it a name like
test
, and put the following lines to the code field:Click on the Dry Run button twice.
You will get a time which is in UTC. The expected time should be in UTC+1 (Europe/Budapest zone).
A quick workaround is to run
sudo dkpg-reconfigure tzdata
inside the Docker container and restart it after that.The text was updated successfully, but these errors were encountered: