Skip to content

Commit

Permalink
Merge pull request #501 from bcgov/develop/alex-GRAD2-2799
Browse files Browse the repository at this point in the history
GRAD2-2799-P3 GRAD Incident: REGALG is creating SCCP certificates for…
  • Loading branch information
githubmamatha authored Jun 27, 2024
2 parents 8d777e1 + c5e6eb9 commit 30ce880
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 30ce880

Please sign in to comment.