Author |
|
bhlonewolf Senior Member
Joined: March 29 2007
Online Status: Offline Posts: 198
|
Posted: November 04 2007 at 16:02 | IP Logged
|
|
|
Hi all,
I have PH setup to observe Daylight Saving Time in the Setup/Sun setting. But, it's still showing sunset to be at 18:22 when it should now be 17:22. I tested this in multiedit by running ph_getsuntime(today(),2).
I've deselected the option and reinitialized PH, and the correct time is returned as expected, so it looks like PH hadn't realized the time change. Just out of curiosity, any reason PH doesn't use Windows as the time beacon?
Thx!
Brian
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: November 04 2007 at 16:32 | IP Logged
|
|
|
Brian,
It's a bug! I went back and checked the functions and Im a day off (I used <= instead of just <, dohh!!). I thought I had this completely taken care of and couldnt figure out why I missed it but now I know...PowerHome has ALWAYS been a day off on the end of daylight savings time. Shame on everyone for letting me live in ignorance for this long .
Ive gone ahead and corrected the code for all functions so it'll be fixed for next year. If you calculate the time for tomorrow, you should see that it will indeed be correct.
Concerning why PowerHome doesnt use the Windows value...is primarily because PowerHome can calculate the sun times for days in advance. There was no way in Windows to tell (that I knew of) to determine if daylight savings time was in effect for a given day in advance.
Hope this helps,
Dave.
|
Back to Top |
|
|
bhlonewolf Senior Member
Joined: March 29 2007
Online Status: Offline Posts: 198
|
Posted: November 04 2007 at 17:23 | IP Logged
|
|
|
Ah cool! Well, being off for one day really isn't a big deal at all for me. But thx for checking into it!
Brian
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: November 04 2007 at 18:59 | IP Logged
|
|
|
Heh. I was just going to post a question on this as my lights did not come on!
|
Back to Top |
|
|