Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-24225

DateFormatter "parseDateString" method cannot parse dateString value formatted with non default en_US format

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Adobe Flex SDK 4.0 (Release)
    • Apache Flex 4.10.0
    • Formatters
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Browser: Internet Explorer 6.x
      Language Found: English

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: