b/2363376 Fixed month view loading error.

Converted table expansion request dates to ms format so that it would take the proper
action in the month view.

This is I25aafacf applied to CalendarProvider2.
diff --git a/src/com/android/providers/calendar/CalendarProvider2.java b/src/com/android/providers/calendar/CalendarProvider2.java
index f1d927e..fc9624b 100644
--- a/src/com/android/providers/calendar/CalendarProvider2.java
+++ b/src/com/android/providers/calendar/CalendarProvider2.java
@@ -581,7 +581,15 @@
         qb.setTables("Instances INNER JOIN Events ON (Instances.event_id=Events._id) " +
                 "INNER JOIN Calendars ON (Events.calendar_id = Calendars._id)");
         qb.setProjectionMap(sInstancesProjectionMap);
-        acquireInstanceRange(begin, end, true);
+        // Convert the first and last Julian day range to a range that uses
+        // UTC milliseconds.
+        Time time = new Time();
+        long beginMs = time.setJulianDay((int) begin);
+        // We add one to lastDay because the time is set to 12am on the given
+        // Julian day and we want to include all the events on the last day.
+        long endMs = time.setJulianDay((int) end + 1);
+
+        acquireInstanceRange(beginMs, endMs, true);
         qb.appendWhere("startDay <= ");
         qb.appendWhere(String.valueOf(end));
         qb.appendWhere(" AND endDay >= ");