Fix wrong alarm selection

This commit is contained in:
Daniel Poelzleithner 2022-03-31 03:54:59 +02:00
parent ff84a35d4d
commit 6d9164a29a

View File

@ -2880,7 +2880,7 @@ local Sync = ( function
end
print(type(now()))
local nalarm = type(self.nextCronAlarm) == "userdata" and self.nextCronAlarm.seconds or nil
local nalarm = nil
for i, c in ipairs(self.cron) do
local na = c:get_next_occurrence(timestamp.seconds)
print("na", timestamp.seconds, na)