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 (#266)

P3 GRAD Incident: REGALG is creating SCCP certificates for students with future completion dates
  • Loading branch information
arybakov-cgi authored Jun 27, 2024
1 parent 2d90c0c commit c00055b
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,14 @@ public static synchronized void zipFile(File fileToZip, String fileName, ZipOutp
}
}

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;
}

/**
Expand Down

0 comments on commit c00055b

Please sign in to comment.