From 0c8fc0de617d96df70bd9aa7bb0f966f535c70ed Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Tue, 28 Aug 2012 10:37:52 +0100 Subject: Probably hacky fix for the new year --- src/net/cbaines/suca/SotonCalendarParser.java | 8 ++++---- 1 file 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); -- cgit v1.2.3