Sunset out by 6 hours on both C5 & C7 Hub

As of today both my hubs C5 and C7 are showing Sunset is 12:13pm it should be 6:13pm so this mean all my rules with a Sunset trigger ran 13min after noon. The sunrise time is correct.

It's been working correctly for years and just started today.

Anyone else seeing this?

I updated the hubs to the latest version after seeing this but it's still the same post update.

My longitude and latitude are correct.
-34.920000, 138.510000 (Note I've modified this slightly for security)

My time zone is Australia/Adelaide.

@bravenel many years ago I think you fixed a similar issue for me, can you please look into this if possible.

Thanks,
Scott

Could you please PM me your hub's id? I'll take a look at the enginerring logs.

Hi Victor,

When getting the hub IDs for you I noticed the sunset time is correct now on both hubs :-).

I'll still PM you the info in case that help in any way.

Thanks,
Scott

1 Like

Hi,

This has just happened again, is there a bug in the data for 22/23 of September?

It's exactly 1 year since this last happened!

3 Likes

Hi Again,

Just check and without doing anything today the Sunset time is correct.

So it looks like there's been an error with the Sunset data for the 23 of September the last 2 years.

Any chance you can quickly look into this if it's not going to take to long as there a good chance it's going to happen again next year.

Thanks,
Scott

Below shows it's fixed

I got a workaround for this, to be included into the next build. No way to 100% know it works until a year from now, though.

1 Like

Can you test it by configuring the hub to use a local NTP server that is intentionally misconfigured with the wrong date/time?

1 Like

I can set the time and time zone manually on the hub itself. We got fully open engineering hubs to play with here :slight_smile:

What I found is that sunset time that comes out of the calculation is wrong for one particular day of the year. And it only happens on the hub and not in a development environment. And it only happens in the morning (until exactly 12 noon), and only in one particular time zone (haven't tested all of them, to be fair). So the workaround is to run calculations again in the afternoon, which produces correct results and schedules sunset job/trigger at the right time. That worked for me, but again, this is such a weird issue that I can't be sure the fix works until it's out there and is confirmed to work for the end users next year.

5 Likes

Thank you for looking into this, the workaround and providing an explanation of the issue.

Cheers,
Scott

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.