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

FallbackDateTimeFormatter: format method return wrong value when formatting invalid date

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • None
    • Spark: Formatters
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Internet Explorer 8.x
      Language Found: English

    Description

      Steps to reproduce:
      1.Declare a DateTimeFormatter instance.
      2.Set enforceFallback to true.
      3.Set dateStyle to 'long' and timeStyle to 'long'
      4.Format date
      date:Date = new Date(30000000, 11, 31, 23, 59, 59, 935);

      Actual Results:
      Sunday, December 31, 30000000 11:59:59 PM is returned.

      Expected Results:
      Empty string should be returned since the date is an invalid date.

      Comments:
      For flash.globalization.formatters.DateTimeFormatter, empty string will be returned when formatting an invalid date.

      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: