if (isNewDay())
{
publish(true, "New Day", "%d", Time.day());
}
Here is the code were using to determine if its a new day or not. Were using the LocalTimeRK Library, not sure if you would know anything about this @rickkas7
The spamming started around 10 pm on the 3rd and ended around 10 pm on the 4th. Were suspecting something with DST had to do with this and what the fix could possibly be
That is a great Idea, just to clarify though the spamming did stop at around 10pm (EST/DST )on the 4th, it normally operates as you'd expect, once a day at midnight (GMT).
Yes, it's a bug, but I don't have a fix yet. The problem is that nextDayMidnight() increments the seconds by 86400 if the day rolled backwards after adjusting for local time midnight, but on a DST fall back, that's not enough to advance to the next day, so it returns the same day each time it's called.
Fixed a bug where nextDayMidnight(), nextDay(), and nextTimeList() could return the same day on daylight saving fall back because the day has more than 86400 seconds. Now does a calendar date calculation instead of relying on a specific number of seconds in a day.