Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5204

The DateTimeField.onBeforeRender() method does not format the fields correctly.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.9, 6.7.0, 6.8.0
    • 6.9.0, 1.5.11, 7.0.0-M1
    • wicket-datetime
    • None

    Description

      The current implementation relies on the org.joda.time.MutableDateTime instance to format the date, hours, amOrPm, and minutes fields. Unfortunately, the MutableDateTime constructor is not provided with the client's TimeZone value (assuming it is set). As a result, the joda library uses the JVM's default timezone. If the defaul timezone differs from the client's timezone, the formatted fields may turn out to be incorrect.

      Attachments

        1. DateTimeFieldTest.java
          1 kB
          Caleb Powell

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            caleb.powell Caleb Powell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: