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

Make the Date.parse locale aware.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Set the compiler locale to a non-english one (I used it_IT)
      2. Add a DateField
      3. Try to parse the date provided by DateField.text or a date hardcoded in a string with dd/mm/yyyy formatting.

      This issue is somewhat related (and should be linked) to SDK-23683.

      Actual Results:
      I tried 4 different parsing methods and I got 4 different results, as in the project attached.

      Expected Results:
      I expect that parsing a date without specifying a formatter should try parsing the date with the default formatter for the current locale.

      Workaround (if any):
      Provide the explicit formatter for the current locale for each date parsed, using only the DateField parser. But the formatter provided should be with english convenctions (DD and YYYY for days and years) and not the localized version of the formatter.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: