Update Prog.java
This commit is contained in:
parent
cc6d44cbe1
commit
d100a67bf7
|
@ -527,12 +527,12 @@ public class Prog extends AbsLayout {
|
|||
if(sches==null) return false;
|
||||
var local = milli + Dates.zoneOff;
|
||||
var time = local % 86400000L;
|
||||
long week = -1;
|
||||
int week = -1;
|
||||
for(var sche : sches) {
|
||||
if(notInRange(sche.startDate, local, sche.endDate)) continue;
|
||||
if(notInRange(sche.startTime, time, sche.endTime)) continue;
|
||||
if(sche.weeks==null) return true;
|
||||
if(week==-1) week = (local / 86400000L + 4) % 7;
|
||||
if(week==-1) week = ((int)(local / 86400000L) + 4) % 7;
|
||||
if(sche.weeks.contains(week)) return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user