Merge "Fix 5654631. It forgot to consider the year in formatDateRange." into ics-mr1

This commit is contained in:
Owen Lin
2011-11-22 17:44:52 -08:00
committed by Android (Google) Code Review

View File

@@ -1415,7 +1415,7 @@ public class DateUtils
}
}
if (noMonthDay && startMonthNum == endMonthNum) {
if (noMonthDay && startMonthNum == endMonthNum && startYear == endYear) {
// Example: "January, 2008"
return formatter.format("%s", startDate.format(defaultDateFormat));
}