|
|
@ -124,10 +124,14 @@ public class RepeatTaskCompleteListener extends BroadcastReceiver {
|
|
|
|
|
|
|
|
|
|
|
|
if(nextDate instanceof DateTimeValueImpl) {
|
|
|
|
if(nextDate instanceof DateTimeValueImpl) {
|
|
|
|
DateTimeValueImpl newDateTime = (DateTimeValueImpl)nextDate;
|
|
|
|
DateTimeValueImpl newDateTime = (DateTimeValueImpl)nextDate;
|
|
|
|
newDueDate = task.createDueDate(Task.URGENCY_SPECIFIC_DAY_TIME,
|
|
|
|
Date date = new Date(Date.UTC(newDateTime.year() - 1900, newDateTime.month() - 1,
|
|
|
|
Date.UTC(newDateTime.year() - 1900, newDateTime.month() - 1,
|
|
|
|
|
|
|
|
newDateTime.day(), newDateTime.hour(),
|
|
|
|
newDateTime.day(), newDateTime.hour(),
|
|
|
|
newDateTime.minute(), newDateTime.second()));
|
|
|
|
newDateTime.minute(), newDateTime.second()));
|
|
|
|
|
|
|
|
// time may be inaccurate due to DST, force time to be same
|
|
|
|
|
|
|
|
date.setHours(repeatFromDate.getHours());
|
|
|
|
|
|
|
|
date.setMinutes(repeatFromDate.getMinutes());
|
|
|
|
|
|
|
|
newDueDate = task.createDueDate(Task.URGENCY_SPECIFIC_DAY_TIME,
|
|
|
|
|
|
|
|
date.getTime());
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
newDueDate = task.createDueDate(Task.URGENCY_SPECIFIC_DAY,
|
|
|
|
newDueDate = task.createDueDate(Task.URGENCY_SPECIFIC_DAY,
|
|
|
|
new Date(nextDate.year() - 1900, nextDate.month() - 1,
|
|
|
|
new Date(nextDate.year() - 1900, nextDate.month() - 1,
|
|
|
|