Wicket
  1. Wicket
  2. WICKET-5113

Set a different TimeZone for the RequestLogger

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.10
    • Fix Version/s: 6.7.0
    • Component/s: wicket
    • Labels:
      None

      Description

      I'm using wicket 1.5.9. In my log4j.xml I have:

      <logger name="org.apache.wicket.protocol.http.RequestLogger">
      <level value="info"/>
      </logger>

      but when I'm testing my log file output is showing the request logger information using GMT timezone and I need to be GMT+1.

      Following Martin Grigorov is it possible to remove the final from org.apache.wicket.protocol.http.AbstractRequestLogger#formatDate method?

        Activity

        Hide
        Martin Grigorov added a comment -

        The 'final' modifier is removed in Wicket 6.x.
        In 1.5.x the signature is:
        protected static String formatDate(final Date date)
        and we cannot remove 'static' because it will be an API break in minor release.

        Show
        Martin Grigorov added a comment - The 'final' modifier is removed in Wicket 6.x. In 1.5.x the signature is: protected static String formatDate(final Date date) and we cannot remove 'static' because it will be an API break in minor release.

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Teresa Neto
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development