Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-678

Access log rotation may rotate logs at noon rather than midnight

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.3.21.Final
    • 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 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

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

                Created:
                Updated:
                Resolved: