You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Steve Flasby (JIRA)" <ji...@apache.org> on 2009/04/24 09:40:30 UTC

[jira] Created: (WICKET-2242) java.sql.Timestamp converter bug

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.


[jira] Resolved: (WICKET-2242) java.sql.Timestamp converter bug

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-2242.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4-RC3
         Assignee: Igor Vaynberg

> 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
>            Assignee: Igor Vaynberg
>            Priority: Minor
>             Fix For: 1.4-RC3
>
>
> 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.