java.sql.Timestamp converter bug
--------------------------------

                 Key: WICKET-2242
                 URL: https://issues.apache.org/jira/browse/WICKET-2242
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.4-RC2
            Reporter: Steve Flasby
            Priority: Minor


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);


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to