From 059c4058e96870b2799c2de90a9a069f8c412e35 Mon Sep 17 00:00:00 2001 From: Pavel_Bortnik Date: Mon, 3 Jun 2024 14:05:28 +0300 Subject: [PATCH] EPMRPP-91000 || Change date formatter --- .../extension/monday/service/issue/log/sender/LogSender.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/epam/reportportal/extension/monday/service/issue/log/sender/LogSender.java b/src/main/java/com/epam/reportportal/extension/monday/service/issue/log/sender/LogSender.java index 46d8f89..3e41787 100644 --- a/src/main/java/com/epam/reportportal/extension/monday/service/issue/log/sender/LogSender.java +++ b/src/main/java/com/epam/reportportal/extension/monday/service/issue/log/sender/LogSender.java @@ -16,6 +16,7 @@ import java.io.IOException; import java.io.InputStream; import java.text.SimpleDateFormat; +import java.time.format.DateTimeFormatter; import java.util.List; import java.util.Optional; import org.slf4j.Logger; @@ -27,7 +28,7 @@ public class LogSender { private static final String TEST_EXECUTION_LOG_TITLE = "Test execution log:"; - private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss"); + private static final DateTimeFormatter DATE_FORMAT = DateTimeFormatter.ofPattern("MM-dd-yyyy HH:mm:ss"); private final MondayClient mondayClient; private final DataStoreService dataStoreService;