Skip to content

Commit

Permalink
Fixed incorrect parsing when day >= 30
Browse files Browse the repository at this point in the history
  • Loading branch information
Morph21 committed Aug 30, 2022
1 parent 2e489b6 commit bbfadcc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<MessageInterceptor> interceptors = new ArrayList<>();
Expand Down

0 comments on commit bbfadcc

Please sign in to comment.