Bug 7515 - DailyRollingFileAppender wrong rollover type
Summary: DailyRollingFileAppender wrong rollover type
Status: RESOLVED DUPLICATE of bug 7550
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Appender (show other bugs)
Version: 1.1
Hardware: All All
: P3 normal
Target Milestone: ---
Assignee: log4j-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-27 15:07 UTC by Doug
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Doug 2002-03-27 15:07:14 UTC
this appender doesn't seem to handle TimeZones other than GMT properly.  
namely, when it's determining which rollover type to use, it starts with
a time of 0 GMT, which is 18:00 December 31, 1969 in my timezone.  the 
RolloverCalendar.getNextCheckDate method succeeds in the HALF_DAY case, rather 
than the TOP_OF_DAY case, and incorrectly determines that the log is "to be 
rolled at midday and midnight" instead of "at midnight" only.  the file really 
is only rolling over once a day - i think the extra filename check in rollover
() fixes this - but the type is definitely wrong.
Comment 1 Ceki Gulcu 2002-05-09 16:47:23 UTC
This bug is fixed in log4j 1.2 (final).

*** This bug has been marked as a duplicate of 7550 ***