Skip to content

Commit

Permalink
Merge pull request #152 from tarentomaheshvakkund/4.816-batchScheduling
Browse files Browse the repository at this point in the history
 KB-5718 | DEV|Assessment |BE| Capturing the starttime and endtime of  the Batches while creating the batch for Assessment
  • Loading branch information
SaipradeepR authored Jul 4, 2024
2 parents 4191245 + 98f0abb commit 32a0d23
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ private static void processStartEndDate(Map<String, Object> map, String timeType
Calendar timeCalendar = Calendar.getInstance();
timeCalendar.setTime(time);
String timeZone = ProjectUtil.getConfigValue(JsonKey.SUNBIRD_TIMEZONE);
calendar.setTimeZone(TimeZone.getTimeZone(timeZone));
TimeZone tz = TimeZone.getTimeZone(timeZone);
calendar.setTimeZone(tz);
log.info("Merging time part {} into date {} with timezone {}", timeStr, map.get(dateType), timeZone);
calendar.set(Calendar.HOUR_OF_DAY, timeCalendar.get(Calendar.HOUR_OF_DAY));
calendar.set(Calendar.MINUTE, timeCalendar.get(Calendar.MINUTE));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,27 @@ public class CourseBatch implements Serializable {
private String hashTagId;
private List<String> mentors;
private String name;
private String startTime;
private String endTime;

private Integer status;

public String getStartTime() {
return startTime;
}

public void setStartTime(String startTime) {
this.startTime = startTime;
}

public String getEndTime() {
return endTime;
}

public void setEndTime(String endTime) {
this.endTime = endTime;
}

private Map<String, Object> certTemplates;
private Map<String, Object> batchAttributes;

Expand Down

0 comments on commit 32a0d23

Please sign in to comment.