|
|
@ -483,10 +483,14 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
|
|
|
|
else
|
|
|
|
else
|
|
|
|
string = DateUtilities.getRelativeDay(activity, date).toLowerCase();
|
|
|
|
string = DateUtilities.getRelativeDay(activity, date).toLowerCase();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if(Task.hasDueTime(date))
|
|
|
|
string = DateUtils.getRelativeDateTimeString(activity, date,
|
|
|
|
string = DateUtils.getRelativeDateTimeString(activity, date,
|
|
|
|
DateUtils.MINUTE_IN_MILLIS, DateUtils.WEEK_IN_MILLIS, 0).toString();
|
|
|
|
DateUtils.MINUTE_IN_MILLIS, DateUtils.WEEK_IN_MILLIS, 0).toString();
|
|
|
|
if(!Task.hasDueTime(date))
|
|
|
|
else if(Math.abs(date - DateUtilities.now()) < DateUtilities.ONE_WEEK)
|
|
|
|
string = string.substring(0, string.lastIndexOf(','));
|
|
|
|
string = DateUtilities.getWeekday(new Date(date));
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
string = DateUtilities.getDateString(activity, new Date(date));
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
dateCache.put(date, string);
|
|
|
|
dateCache.put(date, string);
|
|
|
|