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

java.sql.Timestamp converter bug

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4-RC2
    • 1.4-RC3
    • wicket
    • None

    Description

      SqlTimestampConverter should produce a Date/Time as output, but it only produces
      a time. SqlTimeConverter prints a simple time as expected.

      Looking in the code SqlTimestampConverter::convertToString uses:

      DateFormat format = DateFormat.getTimeInstance(dateFormat, locale);

      when I think it should say:

      DateFormat format = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, locale);

      instead.

      convertToObject would need a corresponding change to:
      DateFormat format = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, locale);

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            flasby Steve Flasby
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: