luc-ass / homebridge-evohome

Homebridge plugin for Honeywell Evohome
29 stars 16 forks source link

Currenttime fix #124

Closed luc-ass closed 1 year ago

luc-ass commented 1 year ago

This fix removes locale and timezone from the plugin. It will default to the timezone and locale set on the system. Only hours12: false is kept to allow comparison with data from the evohome api.

Test 1:

[8/22/2022, 6:28:01 PM] [Evohome] The current time is 18:28:01
[8/22/2022, 6:28:01 PM] [Evohome] Schedule points for today (Monday)
[8/22/2022, 6:28:01 PM] [Evohome] - 06:20:00
[8/22/2022, 6:28:01 PM] [Evohome] - 16:00:00
[8/22/2022, 6:28:01 PM] [Evohome] - 23:30:00 -> next change
[8/22/2022, 6:28:01 PM] [Evohome] Setting target temperature for Wohnküche Thermostat to 20° until 23:30:00
[8/22/2022, 6:28:01 PM] [Evohome] Successfully changed temperature!
[8/22/2022, 6:28:01 PM] [Evohome] { id: '67412699' }

Test 2: date returns the same time and format on host and inside homebridge docker-container