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

AS3: DateFormatter gives an incorrect output for the year and the day when formatString allows for zero padding.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • Adobe Flex SDK Previous
    • Formatters
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Reproduction:
      1. Instantiate a DateFormatter with formatString = "YYYYYYY, DDDDDD, at JJJJ HHHH KKKK LLLL NNNN SSSS".
      2. Run the file, select a date using the DateChooser (i.e. 3/17/05), and click on Execute Formatting.

      Actual Results: The output is incorrect and didn't pad with zeroes properly. It is: "YYYYYYY, 000017YYYYYYY, DDDDDD0002005, DDDDDD, at 0000 0001 0000 0012 0000 0000".

      Expected Results: It should be "0002005, 000017, at 0000 0001 0000 0012 0000 0000".

      Workaround: None

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: