mirror of
https://github.com/wled/WLED.git
synced 2025-04-24 14:57:18 +00:00
Fix UTC offset not working
This commit is contained in:
parent
89f60a0422
commit
4a834ecfc8
@ -164,9 +164,9 @@ void setCountdown()
|
||||
bool checkCountdown()
|
||||
{
|
||||
unsigned long n = now();
|
||||
local = countdownTime - n;
|
||||
if (countdownMode) local = countdownTime - n + utcOffsetSecs;
|
||||
if (n > countdownTime) {
|
||||
local = n - countdownTime;
|
||||
if (countdownMode) local = n - countdownTime + utcOffsetSecs;
|
||||
if (!countdownOverTriggered)
|
||||
{
|
||||
if (macroCountdown != 0) applyMacro(macroCountdown);
|
||||
|
Loading…
x
Reference in New Issue
Block a user