myvobot / dock-mini-apps

Apps for Vobot Dock Mini
MIT License
7 stars 3 forks source link

base tzOffset set to 3600 #4

Closed lcervo-diligent closed 1 month ago

lcervo-diligent commented 2 months ago

I set the base city (using the designated application web page) to London and the OPTIONS.tzOffset value (or the return value of clocktime.tzoffset()) is now set to 3600. I changed it to Paris and that value is 7200. Shouldn't it be 0 for London and 3600 for Paris?

pumpkin-zbh commented 1 month ago

The timezone offsets you observed are correct because they reflect the current Daylight Saving Time (DST) status. Both London and Paris are currently in DST:

If it were not DST, London should be 0 seconds (GMT) and Paris should be 3600 seconds (CET).

lcervo-diligent commented 1 month ago

yes!!! 🤦🏼