Browse code

BM-11571 Fix: calendar reminder within two days

David Phan authored on 12/01/2018 09:04:29
Showing 1 changed files
... ...
@@ -148,7 +148,7 @@ public class CalendarAlarmSupport implements IAlarmSupport<VEvent> {
148 148
 		ICalendar calendar = ServerSideServiceProvider.getProvider(SecurityContext.SYSTEM).instance(ICalendar.class,
149 149
 				containerUid);
150 150
 		VEventQuery q = VEventQuery.create(BmDateTimeWrapper.create(day, Precision.DateTime),
151
-				BmDateTimeWrapper.create(day.withFieldAdded(DurationFieldType.hours(), 24), Precision.DateTime));
151
+				BmDateTimeWrapper.create(day.withFieldAdded(DurationFieldType.hours(), 48), Precision.DateTime));
152 152
 		ListResult<ItemValue<VEventSeries>> events = calendar.search(q);
153 153
 		return events.values.stream().filter(item -> item.value.hasAlarm()).collect(Collectors.toList());
154 154
 	}