Skip to content

Commit

Permalink
SAK-13120 - Schedule events intermittantly display on wrong day in we…
Browse files Browse the repository at this point in the history
…ek view in My Workspace (sakaiproject#4794)
  • Loading branch information
jonespm authored Sep 15, 2017
1 parent 119f71f commit 7153b23
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3237,10 +3237,11 @@ protected Vector getNewEvents(int year, int month, int day, CalendarActionState
boolean firstTime = true; // Don't need to do complex checking the first time.
Vector events = new Vector(); // A vector of vectors, each of the vectors containing a range of previous events.

Time timeObj = TimeService.newTimeLocal(year,month,day,time,00,00,000);
//This +1 and -1 here are from SAK-13120 to work around an issue with endTime being included and not adding correctly
Time timeObj = TimeService.newTimeLocal(year,month,day,time,00,00,000+1);

long duration = ((30*60)*(1000));
Time updatedTime = TimeService.newTime(timeObj.getTime()+ duration);
Time updatedTime = TimeService.newTime(timeObj.getTime()+ duration-1);

/*** include the start time ***/
TimeRange timeRangeObj = TimeService.newTimeRange(timeObj,updatedTime,true,false);
Expand Down

0 comments on commit 7153b23

Please sign in to comment.