Skip to content
Browse files

Resolve PIVOT-652.

git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/1.5.x@1022479 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent a993969 commit ef1633c814473089abd145b4b219e5badf0a18f5 Gregory K. Brown committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraCalendarSkin.java
View
4 wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraCalendarSkin.java
@@ -613,8 +613,8 @@ private void updateCalendar() {
Locale locale = calendar.getLocale();
GregorianCalendar gregorianCalendar = new GregorianCalendar(locale);
gregorianCalendar.set(year, month, 1);
- int firstIndex = gregorianCalendar.get(java.util.Calendar.DAY_OF_WEEK)
- - gregorianCalendar.getFirstDayOfWeek();
+ int firstIndex = (7 + gregorianCalendar.get(java.util.Calendar.DAY_OF_WEEK)
+ - gregorianCalendar.getFirstDayOfWeek()) % 7;
int lastIndex = firstIndex + gregorianCalendar.getActualMaximum(java.util.Calendar.DAY_OF_MONTH);
// Determine the last day of last month

0 comments on commit ef1633c

Please sign in to comment.
Something went wrong with that request. Please try again.