full day time window
This commit is contained in:
parent
7046cccabe
commit
5786c1bfd4
@ -888,7 +888,7 @@ public class Trigger
|
|||||||
&&
|
&&
|
||||||
Miscellaneous.compareTimes(nowTime, tf.getTriggerTimeStop()) > 0
|
Miscellaneous.compareTimes(nowTime, tf.getTriggerTimeStop()) > 0
|
||||||
)
|
)
|
||||||
|
|
||
|
||||||
// Other case, start time higher than end time, timeframe goes over midnight
|
// Other case, start time higher than end time, timeframe goes over midnight
|
||||||
(
|
(
|
||||||
Miscellaneous.compareTimes(tf.getTriggerTimeStart(), tf.getTriggerTimeStop()) < 0
|
Miscellaneous.compareTimes(tf.getTriggerTimeStart(), tf.getTriggerTimeStop()) < 0
|
||||||
@ -897,7 +897,11 @@ public class Trigger
|
|||||||
||
|
||
|
||||||
Miscellaneous.compareTimes(nowTime, tf.getTriggerTimeStop()) > 0)
|
Miscellaneous.compareTimes(nowTime, tf.getTriggerTimeStop()) > 0)
|
||||||
)
|
)
|
||||||
|
||
|
||||||
|
// further case: start and end times are identical, meaning a 24h window
|
||||||
|
(
|
||||||
|
Miscellaneous.compareTimes(tf.getTriggerTimeStart(), tf.getTriggerTimeStop()) == 0
|
||||||
|
)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// We are in the timeframe
|
// We are in the timeframe
|
||||||
|
Loading…
Reference in New Issue
Block a user