From bbfadcc228c15b44ba6e3c2c5669634c0aa8dfbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Gruszczy=C5=84ski?= Date: Tue, 30 Aug 2022 23:14:52 +0200 Subject: [PATCH] Fixed incorrect parsing when day >= 30 --- .../com/mercury/platform/core/utils/MessageFileHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app-core/src/main/java/com/mercury/platform/core/utils/MessageFileHandler.java b/app-core/src/main/java/com/mercury/platform/core/utils/MessageFileHandler.java index 82fde79d..75073bc6 100644 --- a/app-core/src/main/java/com/mercury/platform/core/utils/MessageFileHandler.java +++ b/app-core/src/main/java/com/mercury/platform/core/utils/MessageFileHandler.java @@ -24,7 +24,7 @@ public class MessageFileHandler implements AsSubscriber { private String logFilePath; private Date lastMessageDate = new Date(); private Pattern datePattern; - private Pattern p = Pattern.compile("20[2-9][0-9]\\/[0-2][0-9]\\/[0-2][0-9] [0-2][0-9]:[0-5][0-9]:[0-5][0-9]"); + private Pattern p = Pattern.compile("20[2-9][0-9]\\/[0-2][0-9]\\/[0-3][0-9] [0-2][0-9]:[0-5][0-9]:[0-5][0-9]"); private List interceptors = new ArrayList<>();