You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Peter Diefenthäler (JIRA)" <ji...@apache.org> on 2010/03/29 13:35:27 UTC
[jira] Created: (WICKET-2808) Wrong dates with StyleDateConverter
with Format "M-"
Wrong dates with StyleDateConverter with Format "M-"
-----------------------------------------------------
Key: WICKET-2808
URL: https://issues.apache.org/jira/browse/WICKET-2808
Project: Wicket
Issue Type: Bug
Components: wicket-datetime
Affects Versions: 1.4.7
Environment: Windows, Tomcat
Reporter: Peter Diefenthäler
Using a Date Text Field with StyleDateConverter and Formatstring "M_" like
DateTextField datehField = (new DateTextField("cdate",
new PropertyModel<Date>(this, "cDate"), new StyleDateConverter("S-", true)));
results in a wrong Date: Entering 12.12.12 results in 14.12.0012. The Day is wrong and the year should be 2012. Entering 12.12.2012 results in a correct date.
If you use the Format option "S-", both date conversions look fine.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-2808) Wrong dates with StyleDateConverter
with Format "M-"
Posted by "Ralf Ebert (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12854030#action_12854030 ]
Ralf Ebert commented on WICKET-2808:
------------------------------------
I can confirm this issue, broke my application after updating from 1.4.5 to 1.4.7. Especially mean because you only see this if you use the JS calender to select a date - hard to spot this in a web test suite.
M- meant DD.MM.YYYY before, and is now DD.MM.YY on the client side. When you select a current date in the JS calendar, you get 06.04.10 which seems to be formatted as 06.04.0010 on the server side.
Might be related to the application running with a German locale on server and client side.
> Wrong dates with StyleDateConverter with Format "M-"
> -----------------------------------------------------
>
> Key: WICKET-2808
> URL: https://issues.apache.org/jira/browse/WICKET-2808
> Project: Wicket
> Issue Type: Bug
> Components: wicket-datetime
> Affects Versions: 1.4.7
> Environment: Windows, Tomcat
> Reporter: Peter Diefenthäler
>
> Using a Date Text Field with StyleDateConverter and Formatstring "M_" like
> DateTextField datehField = (new DateTextField("cdate",
> new PropertyModel<Date>(this, "cDate"), new StyleDateConverter("S-", true)));
> results in a wrong Date: Entering 12.12.12 results in 14.12.0012. The Day is wrong and the year should be 2012. Entering 12.12.2012 results in a correct date.
> If you use the Format option "S-", both date conversions look fine.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-2808) Wrong dates with StyleDateConverter
with Format "M-"
Posted by "Ralf Ebert (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12854050#action_12854050 ]
Ralf Ebert commented on WICKET-2808:
------------------------------------
seems to be a duplicate of WICKET-2767 (not sure about the day being also wrong)
> Wrong dates with StyleDateConverter with Format "M-"
> -----------------------------------------------------
>
> Key: WICKET-2808
> URL: https://issues.apache.org/jira/browse/WICKET-2808
> Project: Wicket
> Issue Type: Bug
> Components: wicket-datetime
> Affects Versions: 1.4.7
> Environment: Windows, Tomcat
> Reporter: Peter Diefenthäler
>
> Using a Date Text Field with StyleDateConverter and Formatstring "M_" like
> DateTextField datehField = (new DateTextField("cdate",
> new PropertyModel<Date>(this, "cDate"), new StyleDateConverter("S-", true)));
> results in a wrong Date: Entering 12.12.12 results in 14.12.0012. The Day is wrong and the year should be 2012. Entering 12.12.2012 results in a correct date.
> If you use the Format option "S-", both date conversions look fine.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (WICKET-2808) Wrong dates with StyleDateConverter
with Format "M-"
Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg resolved WICKET-2808.
-----------------------------------
Assignee: Igor Vaynberg
Resolution: Won't Fix
we are limited in terms of what YUI calendar understand, please do not use the shortcut formats.
> Wrong dates with StyleDateConverter with Format "M-"
> -----------------------------------------------------
>
> Key: WICKET-2808
> URL: https://issues.apache.org/jira/browse/WICKET-2808
> Project: Wicket
> Issue Type: Bug
> Components: wicket-datetime
> Affects Versions: 1.4.7
> Environment: Windows, Tomcat
> Reporter: Peter Diefenthäler
> Assignee: Igor Vaynberg
>
> Using a Date Text Field with StyleDateConverter and Formatstring "M_" like
> DateTextField datehField = (new DateTextField("cdate",
> new PropertyModel<Date>(this, "cDate"), new StyleDateConverter("S-", true)));
> results in a wrong Date: Entering 12.12.12 results in 14.12.0012. The Day is wrong and the year should be 2012. Entering 12.12.2012 results in a correct date.
> If you use the Format option "S-", both date conversions look fine.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.