Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
examsAndAdmissions
Commits
990f6788
Unverified
Commit
990f6788
authored
1 year ago
by
Ankit Verma
Committed by
GitHub
1 year ago
Browse files
Options
Download
Plain Diff
Merge pull request #155 from rahulbowade/development
Added code related to set zone and logs
parents
e54a0e74
2730d528
github/fork/ruksana2808/filter_bug_examCycle
bug_fix_question_paper_upload
development
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/com/tarento/upsmf/examsAndAdmissions/service/StudentService.java
+2
-1
...ento/upsmf/examsAndAdmissions/service/StudentService.java
src/main/java/com/tarento/upsmf/examsAndAdmissions/service/impl/AttachmentServiceImpl.java
+2
-2
...xamsAndAdmissions/service/impl/AttachmentServiceImpl.java
with
4 additions
and
3 deletions
+4
-3
src/main/java/com/tarento/upsmf/examsAndAdmissions/service/StudentService.java
+
2
−
1
View file @
990f6788
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
src/main/java/com/tarento/upsmf/examsAndAdmissions/service/impl/AttachmentServiceImpl.java
+
2
−
2
View file @
990f6788
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets