You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by ca...@apache.org on 2006/09/01 07:13:59 UTC

svn commit: r439184 - /logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/DailyRollingFileAppender.java

Author: carnold
Date: Thu Aug 31 22:13:58 2006
New Revision: 439184

URL: http://svn.apache.org/viewvc?rev=439184&view=rev
Log:
Bug 38559: Monthly logs not generated at midnight with DRFA

Modified:
    logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/DailyRollingFileAppender.java

Modified: logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/DailyRollingFileAppender.java
URL: http://svn.apache.org/viewvc/logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/DailyRollingFileAppender.java?rev=439184&r1=439183&r2=439184&view=diff
==============================================================================
--- logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/DailyRollingFileAppender.java (original)
+++ logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/DailyRollingFileAppender.java Thu Aug 31 22:13:58 2006
@@ -421,6 +421,7 @@
     case DailyRollingFileAppender.TOP_OF_WEEK:
 	this.set(Calendar.DAY_OF_WEEK, getFirstDayOfWeek());
 	this.set(Calendar.HOUR_OF_DAY, 0);
+	this.set(Calendar.MINUTE, 0);
 	this.set(Calendar.SECOND, 0);
 	this.set(Calendar.MILLISECOND, 0);
 	this.add(Calendar.WEEK_OF_YEAR, 1);
@@ -428,6 +429,7 @@
     case DailyRollingFileAppender.TOP_OF_MONTH:
 	this.set(Calendar.DATE, 1);
 	this.set(Calendar.HOUR_OF_DAY, 0);
+	this.set(Calendar.MINUTE, 0);
 	this.set(Calendar.SECOND, 0);
 	this.set(Calendar.MILLISECOND, 0);
 	this.add(Calendar.MONTH, 1);



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org