RED-8650 - Fix date_formats path
This commit is contained in:
parent
167f27138d
commit
3df5fbb409
@ -3,6 +3,7 @@ package com.iqser.red.service.redaction.v1.server.utils;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.nio.file.Path;
|
||||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.LocalDate;
|
||||
@ -33,7 +34,7 @@ public class DateConverter {
|
||||
|
||||
public Optional<Date> parseDate(String dateAsString) {
|
||||
|
||||
DateTimeFormatter formatter = getDateTimeFormatter("date_formats.txt");
|
||||
DateTimeFormatter formatter = getDateTimeFormatter(Path.of("date_formats.txt").toString());
|
||||
String cleanDate = dateAsString.trim();
|
||||
cleanDate = removeTrailingDot(cleanDate);
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user