From 8135093480db642734fb40d9627325bf9e97a8c9 Mon Sep 17 00:00:00 2001 From: RoboErik Date: Fri, 29 Jul 2011 11:06:15 -0700 Subject: b/5076687 7 day weeks in title, not 8 Change-Id: I954471ebf0dab84acbffcf7fbf7f6df39d231647 --- src/com/android/calendar/CalendarViewAdapter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/com/android/calendar') diff --git a/src/com/android/calendar/CalendarViewAdapter.java b/src/com/android/calendar/CalendarViewAdapter.java index 900e0844..7e053b0e 100644 --- a/src/com/android/calendar/CalendarViewAdapter.java +++ b/src/com/android/calendar/CalendarViewAdapter.java @@ -375,7 +375,8 @@ public class CalendarViewAdapter implements SpinnerAdapter { } long weekStartTime = t.toMillis(true); - long weekEndTime = weekStartTime + DateUtils.WEEK_IN_MILLIS; + // The end of the week is 6 days after the start of the week + long weekEndTime = weekStartTime + DateUtils.WEEK_IN_MILLIS - DateUtils.DAY_IN_MILLIS; // If week start and end is in 2 different months, use short months names Time t1 = new Time(mTimeZone); -- cgit v1.2.3