tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/valves AccessLogValve.java
Date Fri, 01 Jun 2001 22:50:16 GMT
craigmcc    01/06/01 15:50:16

  Modified:    catalina/src/share/org/apache/catalina/valves
                        AccessLogValve.java
  Log:
  Fix the time format used in access logs.  The "kk" pattern gives hours in
  the range 1-24 (who would want that?), while the "HH" pattern is 0-23.
  
  PR: Bugzilla #1900
  Submitted by:	Jason Hunter <jhunter@apache.org>
  
  Revision  Changes    Path
  1.6       +2 -2      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/valves/AccessLogValve.java
  
  Index: AccessLogValve.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/valves/AccessLogValve.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- AccessLogValve.java	2001/02/16 03:28:10	1.5
  +++ AccessLogValve.java	2001/06/01 22:50:14	1.6
  @@ -126,7 +126,7 @@
    *
    * @author Craig R. McClanahan
    * @author Jason Brittain
  - * @version $Revision: 1.5 $ $Date: 2001/02/16 03:28:10 $
  + * @version $Revision: 1.6 $ $Date: 2001/06/01 22:50:14 $
    */
   
   public final class AccessLogValve
  @@ -804,7 +804,7 @@
           monthFormatter.setTimeZone(tz);
           yearFormatter = new SimpleDateFormat("yyyy");
           yearFormatter.setTimeZone(tz);
  -        timeFormatter = new SimpleDateFormat("kk:mm:ss");
  +        timeFormatter = new SimpleDateFormat("HH:mm:ss");
           timeFormatter.setTimeZone(tz);
           currentDate = new Date();
           dateStamp = dateFormatter.format(currentDate);
  
  
  

Mime
View raw message