Skip to content

Commit

Permalink
Updated AdminServiceImpl.java with the new properties for regDatePattern
Browse files Browse the repository at this point in the history
Signed-off-by: Yash S <[email protected]>
  • Loading branch information
yashmsonkusare committed Jan 24, 2024
1 parent 6b74016 commit 49a07e9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ public class AdminServiceImpl implements AdminService {

@Value("${mosip.registration.processor.lostrid.max-registration-date-filter-interval}")
private String max_reg_date_interval;


@Value("${mosip.registration.processor.lostrid.reg-date-pattern}")
private String regDatePattern;

@Autowired
RestClient restClient;

Expand All @@ -48,7 +51,6 @@ public LostRidResponseDto lostRid(SearchInfo searchInfo) {
String dateTime = DateUtils.formatToISOString(DateUtils.getUTCCurrentDateTime());
procRequestWrapper.setRequesttime(dateTime);
try {
String regDatePattern = "yyyy-MM-dd";
DateTimeFormatter dtf = DateTimeFormatter.ofPattern(regDatePattern);
List<FilterInfo> filters=searchInfo.getFilters();
LocalDate dateForm = LocalDate.parse(filters.get(0).getFromValue(), dtf);
Expand Down

0 comments on commit 49a07e9

Please sign in to comment.