Unverified Commit 990f6788 authored by Ankit Verma's avatar Ankit Verma Committed by GitHub
Browse files

Merge pull request #155 from rahulbowade/development

Added code related to set zone and logs
Showing with 4 additions and 3 deletions
+4 -3
......@@ -424,9 +424,10 @@ public class StudentService {
.build();
ResponseEntity response = userController.createUser(createUserDto);
log.info("Create user Response - {}", response);
log.info("Create user Response during verify - {}", response);
if (response.getStatusCode() == HttpStatus.OK) {
String userContent = response.getBody().toString();
log.info("userContent Response - {}", userContent);
JsonNode responseNode = null;
try {
responseNode = mapper.readTree(userContent);
......
......@@ -91,13 +91,13 @@ public class AttachmentServiceImpl implements AttachmentService {
LocalTime examTime = questionPaperDetails.getExamStartTime();
String fileName = questionPaperDetails.getGcpFileName();
try {
LocalDate currentDate = LocalDate.now();
LocalDate currentDate = LocalDate.now(ZoneId.of("Asia/Kolkata"));
// Check if the current date is the same as the exam date
if (currentDate.getYear() == examDate.getYear() &&
currentDate.getMonthValue() == examDate.getMonthValue() &&
currentDate.getDayOfMonth() == examDate.getDayOfMonth()) {
ZoneId zoneId = ZoneId.systemDefault();
ZoneId zoneId = ZoneId.of("Asia/Kolkata");
ZonedDateTime currentTime = ZonedDateTime.now(zoneId);
LocalTime currentLocalTime = currentTime.toLocalTime();
// Calculate the time difference
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment