Skip to content

Commit

Permalink
EPMRPP-91000 || Change date time formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
pbortnik committed Jun 3, 2024
1 parent fadf9fa commit 317de38
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import java.io.InputStream;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.time.format.DateTimeFormatter;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
Expand Down Expand Up @@ -64,14 +65,14 @@ public class DescriptionBuilderService {
private final LogRepository logRepository;
private final TestItemRepository itemRepository;
private final DataStoreService dataStoreService;
private final DateFormat dateFormat;
private final DateTimeFormatter dateFormat;
private final MimeTypes mimeRepository;
private GitlabClient gitlabClient;
private String projectId;

public DescriptionBuilderService(LogRepository logRepository, TestItemRepository itemRepository,
DataStoreService dataStoreService) {
this.dateFormat = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss");
this.dateFormat = DateTimeFormatter.ofPattern("MM-dd-yyyy HH:mm:ss");
this.logRepository = logRepository;
this.itemRepository = itemRepository;
this.mimeRepository = TikaConfig.getDefaultConfig().getMimeRepository();
Expand Down

0 comments on commit 317de38

Please sign in to comment.