ExtendedAccessLogValve.
The format is specified in
http://www.w3.org/TR/WD-logfile.html
and states that the supported timestamps
"yyyy-MM-dd" and "HH:mm:ss" are defined with
ascii digits and GMT.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1145238 13f79535-47bb-0310-9956-
ffa450edef68
import java.util.Date;
import java.util.Iterator;
import java.util.List;
+import java.util.Locale;
import java.util.TimeZone;
import javax.servlet.http.Cookie;
private String currentTimestampString;
ElementTimestampStruct(String format) {
- currentTimestampFormat = new SimpleDateFormat(format);
+ currentTimestampFormat = new SimpleDateFormat(format, Locale.US);
currentTimestampFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
}
}
<fix>
Log a failure if access log file cannot be opened. (kkolinko)
</fix>
+ <fix>
+ Always use en_US as locale for timestamps in ExtendedAccessLogValve.
+ (rjung)
+ </fix>
</changelog>
</subsection>
<subsection name="Coyote">