Skip to content

Commit

Permalink
fix verification date endpoint logic
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Oct 11, 2024
1 parent 624b954 commit 437ed5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions orcid-core/src/main/java/org/orcid/pojo/ajaxForm/Email.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ public static Email valueOf(org.orcid.jaxb.model.v3.release.record.Email e) {

if (e.getVerificationDate() != null) {
Date verificationDate = new Date();
verificationDate.setYear(String.valueOf(e.getLastModifiedDate().getValue().getYear()));
verificationDate.setMonth(String.valueOf(e.getLastModifiedDate().getValue().getMonth()));
verificationDate.setDay(String.valueOf(e.getLastModifiedDate().getValue().getDay()));
verificationDate.setYear(String.valueOf(e.getVerificationDate().getValue().getYear()));
verificationDate.setMonth(String.valueOf(e.getVerificationDate().getValue().getMonth()));
verificationDate.setDay(String.valueOf(e.getVerificationDate().getValue().getDay()));
email.setVerificationDate(verificationDate);
}
}
Expand Down

0 comments on commit 437ed5d

Please sign in to comment.