diff options
author | Christopher Baines <cbaines8@gmail.com> | 2012-08-28 10:37:52 +0100 |
---|---|---|
committer | Christopher Baines <cbaines8@gmail.com> | 2012-08-28 10:37:52 +0100 |
commit | 0c8fc0de617d96df70bd9aa7bb0f966f535c70ed (patch) | |
tree | 642ea95de827c1593bc8f5ddc531715b62cab74e | |
parent | ebd6b37dcf2336fd2b0e56006ee20573ac8e61c1 (diff) | |
download | southampton-university-calendar-applet-master.tar southampton-university-calendar-applet-master.tar.gz |
-rw-r--r-- | src/net/cbaines/suca/SotonCalendarParser.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/cbaines/suca/SotonCalendarParser.java b/src/net/cbaines/suca/SotonCalendarParser.java index a867063..9a5891e 100644 --- a/src/net/cbaines/suca/SotonCalendarParser.java +++ b/src/net/cbaines/suca/SotonCalendarParser.java @@ -74,7 +74,7 @@ public class SotonCalendarParser implements CalendarParser { handler.propertyValue("-//Chris Baines + Henco Appel//SouthamptonUniversityOrganiser//EN"); handler.endProperty(Property.NAME); - Calendar startOfTerm = UniTermDates.getStartOf(UniTermDates.SEMESTER_1, currentYear - 1); + Calendar startOfTerm = UniTermDates.getStartOf(UniTermDates.SEMESTER_1, currentYear); logCalendar("Semester 1 start time ", startOfTerm); @@ -307,7 +307,7 @@ public class SotonCalendarParser implements CalendarParser { } if (mergeHeaders) { - for (int year = UniTermDates.YEAR_BEGINING_2011; year < UniTermDates.YEAR_BEGINING_2019; year++) { + for (int year = currentYear; year < UniTermDates.YEAR_BEGINING_2019; year++) { if (showSemesterWeeks) { } @@ -329,7 +329,7 @@ public class SotonCalendarParser implements CalendarParser { } for (int period : periods) { - for (int year = UniTermDates.YEAR_BEGINING_2011; year < UniTermDates.YEAR_BEGINING_2019; year++) { + for (int year = currentYear; year < UniTermDates.YEAR_BEGINING_2019; year++) { log("Looking at " + periodNames[period]); @@ -372,7 +372,7 @@ public class SotonCalendarParser implements CalendarParser { if (showSemesterWeeks) { - for (int year = UniTermDates.YEAR_BEGINING_2011; year < UniTermDates.YEAR_BEGINING_2019; year++) { + for (int year = currentYear; year < UniTermDates.YEAR_BEGINING_2019; year++) { // Semester 1 Calendar semester1StartDate = UniTermDates.getStartOf(UniTermDates.SEMESTER_1, year); |