|
发表于 2021-6-7 08:41:01
|
显示全部楼层
ha addon 自带文档有说明:
Time zone configuration
The addon will use the configured time zone of the underlying operating system. If this is incorrect (for example with the Home Assistant Operating System it will be UTC), this can be configured in the /config/node-red/settings.js file.
To do so, open the file with a text editor and add the following above the module.exports = { line.
process.env.TZ = "America/Toronto";
The time zone will need to reflect your environment.
Save the file and restart the Node-RED add-on.
可能某些不正确的情况下需要配置一下:
/config/node-red/settings.js 文件中增加一行:
process.env.TZ = "Asia/Shanghai";
|
|