h4 / lywsd02

MIT License
169 stars 34 forks source link

Time sync offset (1 hr ahead) #33

Open mmatesic01 opened 2 years ago

mmatesic01 commented 2 years ago

Hi.

When I am starting script as lywsd02 sync "MAC address" my time syncs but time is set +1 hour ahead. What do I have to do to set the proper time zone?

mmatesic01 commented 2 years ago

Hi,

Nobody here with some a advice?

nonflammable commented 2 years ago

Change line: https://github.com/h4/lywsd02/blob/master/scripts/lywsd02#L17 to: client.time = datetime.utcnow()