8250602: Update sun/security/ssl/SSLLogger/LoggerDateFormatterTest.java to handle TimeZones

This fix updates the test LoggerDateFormatterTest.java to be able to handle different TimeZones

Reviewed-by: alanb, dfuchs, xuelei
This commit is contained in:
Rahul Yadav 2020-07-29 10:26:39 +01:00 committed by Patrick Concannon
parent 6af643e5a1
commit 17035efe87

View File

@ -48,7 +48,7 @@ public class LoggerDateFormatterTest {
SSLPrintStream sslStream;
static String year = "(\\|\\d\\d\\d\\d-\\d\\d-\\d\\d";
static String hour = "\\s\\d\\d:\\d\\d:\\d\\d\\.\\d\\d\\d\\s";
static String zone = "\\w\\w\\w\\|)";
static String zone = "([A-Za-z]+([\\+\\-][0-2]?[0-9](\\:[0-5]?[0-9]))?))";
static Pattern pattern;
Matcher matcher;