flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FLEX-24225) DateFormatter "parseDateString" method cannot parse dateString value formatted with non default en_US format
Date Mon, 22 Apr 2013 10:33:16 GMT

    [ https://issues.apache.org/jira/browse/FLEX-24225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13637697#comment-13637697
] 

Justin Mclean edited comment on FLEX-24225 at 4/22/13 10:32 AM:
----------------------------------------------------------------

Should now be fixed in Apache Flex 4.10.0 develop branch - double check to be sure.
                
      was (Author: jmclean):
    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
>              Labels: easytest
>
> 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

Mime
View raw message