You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fu...@apache.org on 2003/12/22 21:37:25 UTC
cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/valves ExtendedAccessLogValve.java
funkman 2003/12/22 12:37:25
Modified: catalina/src/share/org/apache/catalina/valves
ExtendedAccessLogValve.java
Log:
port patch from 5
Revision Changes Path
1.3 +7 -9 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/valves/ExtendedAccessLogValve.java
Index: ExtendedAccessLogValve.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/valves/ExtendedAccessLogValve.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ExtendedAccessLogValve.java 18 Jul 2003 01:24:45 -0000 1.2
+++ ExtendedAccessLogValve.java 22 Dec 2003 20:37:24 -0000 1.3
@@ -682,9 +682,8 @@
}
/* Make sure date is correct */
- currentDate = new Date();
- fileDateFormatter = new SimpleDateFormat("yyyy-MM-dd");
- dateStamp = dateFormatter.format(currentDate);
+ currentDate = new Date(System.currentTimeMillis());
+ dateStamp = fileDateFormatter.format(currentDate);
open();
return true;
@@ -955,8 +954,7 @@
/* Make sure date is correct */
currentDate = new Date(System.currentTimeMillis());
- fileDateFormatter = new SimpleDateFormat("yyyy-MM-dd");
- dateStamp = dateFormatter.format(currentDate);
+ dateStamp = fileDateFormatter.format(currentDate);
open();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org