-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
When calculating the rotation time for log files the constant Calendar.HOUR is used to set the hour to 0 for midnight. It should use the Calendar.HOUR_OF_DAY or set the AM_PM value as well.
public static final int HOURField number for get and set indicating the hour of the morning or afternoon. HOUR is used for the 12-hour clock (0 - 11). Noon and midnight are represented by 0, not by 12. E.g., at 10:04:15.250 PM the HOUR is 10.
public static final int HOUR_OF_DAYField number for get and set indicating the hour of the day. HOUR_OF_DAY is used for the 24-hour clock. E.g., at 10:04:15.250 PM the HOUR_OF_DAY is 22.
See Also:
HOUR, Constant Field Values
- is cloned by
-
JBEAP-4090 Access log rotation may rotate logs at noon rather than midnight
- Verified