Commit e14cfe98 by Sebastián Katzer

Fix issue with weekDay while date is same day just earlier

parent 21078303
......@@ -123,7 +123,7 @@ public class MatchTrigger extends IntervalTrigger {
}
/**
* Gets the first trigger date.
* Gets the date when to trigger the notification.
*
* @param base The date from where to calculate the trigger date.
*
......@@ -194,6 +194,7 @@ public class MatchTrigger extends IntervalTrigger {
addToDate(cal, now, Calendar.HOUR_OF_DAY, 0);
break;
case DAY:
case WEEK:
addToDate(cal, now, Calendar.DAY_OF_YEAR, 1);
break;
case MONTH:
......@@ -213,6 +214,7 @@ public class MatchTrigger extends IntervalTrigger {
addToDate(cal, now, Calendar.HOUR_OF_DAY, 1);
break;
case DAY:
case WEEK:
addToDate(cal, now, Calendar.DAY_OF_YEAR, 1);
break;
case MONTH:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment