Skip to content

Commit

Permalink
GRAD2-2799-P3 GRAD Incident: REGALG is creating SCCP certificates for…
Browse files Browse the repository at this point in the history
… students with future completion dates- edit summary

P3 GRAD Incident: REGALG is creating SCCP certificates for students with future completion dates
  • Loading branch information
arybakov-cgi committed Jun 27, 2024
1 parent 8d777e1 commit c5e6eb9
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,14 @@ public static String getProgramCompletionDate(Date pcd) {
return dateFormat.format(pcd);
}

private static Date toLastDayOfMonth(Date date) {
Calendar cal = Calendar.getInstance();
cal.setTime(date);
cal.set(Calendar.DAY_OF_MONTH, cal.getActualMaximum(Calendar.DAY_OF_MONTH));
return cal.getTime();
static Date toLastDayOfMonth(Date date) {
if(date != null) {
Calendar cal = Calendar.getInstance();
cal.setTime(date);
cal.set(Calendar.DAY_OF_MONTH, cal.getActualMaximum(Calendar.DAY_OF_MONTH));
return cal.getTime();
}
return null;
}

}

0 comments on commit c5e6eb9

Please sign in to comment.