Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-4090

Access log rotation may rotate logs at noon rather than midnight

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.0.DR8
    • None
    • Undertow
    • None

    Description

      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 HOUR
      

      Field 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_DAY
      

      Field 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

      Attachments

        Issue Links

          Activity

            People

              jperkins-rhn James Perkins
              jperkins-rhn James Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: