You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/04/22 02:29:15 UTC

[jira] [Reopened] (FLEX-24225) DateFormatter "parseDateString" method cannot parse dateString value formatted with non default en_US format

     [ https://issues.apache.org/jira/browse/FLEX-24225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Mclean reopened FLEX-24225:
----------------------------------


Should now be fixed - double check to be sure.
                
> DateFormatter "parseDateString" method cannot parse dateString value formatted with non default en_US format
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-24225
>                 URL: https://issues.apache.org/jira/browse/FLEX-24225
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Formatters
>    Affects Versions: Adobe Flex SDK 4.0 (Release)
>         Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Browser: Internet Explorer 6.x
> Language Found: English
>            Reporter: Adobe JIRA
>            Assignee: Adobe JIRA
>            Priority: Minor
>
> Steps to reproduce:
> 1. Make sure that compiler argument for the project is set to de_DE or es_ES or ru_RU. 
> 2. Compile the the attached MXML file.
>  
>  Actual Results:
>   Labels text with id "dateValue1" and "dateValue2" are displayed empty, although they are binded to the formatted value of <mx:DateField> control
>  Expected Results:
>   Labels text with id "dateValue1" and "dateValue2" are filled with the formatted date value from <mx:DateField> control.
>  
>  Workaround (if any):
>    Do not use standard DateFormatter for formatting if dates are passed in *string* format, write your own implementation of formatter and rewrite "parseDateString" static method.
>    The problem with "parseDateString" method that it cannot handle passed dateStrings formatted by date formats that differ from default "en_US" format 'MM/DD/YYYY'
>      
>     E.g.,  default date formats for international locales ru_RU (DD.MM.YYYY) or de_DE (DD/MM/YYYY) fail to work with "parseDateString" method.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira