Closed PuzzledUser closed 1 year ago
I believe I have a fix for the temp change being erroneously applied to the change after next:
[24/12/2021, 05:50:03] [Evohome] The current time is 06:50:03
[24/12/2021, 05:50:03] [Evohome] Schedule points for today (Friday)
[24/12/2021, 05:50:03] [Evohome] - 06:50:00
[24/12/2021, 05:50:03] [Evohome] - 07:10:00 -> next change
[24/12/2021, 05:50:03] [Evohome] - 08:10:00
Line 704: I overwrote the erroneous assignment using default region rather than DE region. (I'm in UK)
var currenttime = correctDate.toLocaleTimeString("de-DE", {
timeZone: "Europe/Berlin",
hour12: false,
});
var currenttime = correctDate.toLocaleTimeString(); // try default conversion to fix time issues
Hey there. Just a quick follow up on your issue: Did you manually change the region to UK? Can you post an example of what you changed?
Hey, that would be one solution. But as you see above, passing no parameter means that the system defaults to the local region; magic.
i.e. I kept your code, but immediately overwrote the currenttime variable with a simpler version.
Got it. I can't remember what made me do this in the first place. I have a suspicion that 24-hour format was needed. Can't really test it though, as I never use am/pm. How long have you been running this code?
Heehee. All good here since: Dec 24 2021
148c9426eb0a89911759fb3a7cca869e19e27e83
var currenttime = correctDate.toLocaleTimeString([], {
hour12: false,
});
This way hours12: false
can be kept. I'll merge the branch back into master in a few days after testing it out. Thank you again for working on this!
var currenttime = correctDate.toLocaleTimeString([], { hour12: false, });
This way
hours12: false
can be kept. I'll merge the branch back into master in a few days after testing it out. Thank you again for working on this!
Makes sense, best of both worlds.
released as of v0.9.1
Further to https://github.com/luc-ass/homebridge-evohome/issues/59 I see time is an hour out:
Servertime and Timezone seems correct:
Maybe I'm missing something, but I thought you had this one sussed... PS I've helped you out before but am locked out of that account now as I can't get the git verification code.