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

The DateFormatter cannot format the date if the date in UTC is Jan 1st 1970 0 hours 0mins 0sec and 0 milliseconds

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • Adobe Flex SDK Previous
    • None
    • Formatters
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Internet Explorer 6.x
      Language Found: English

    Description

      Steps to reproduce:

      1. Create a date object and set the UTC date to Jan 1st, 1970, 00Hours, 00minutes, 00seconds, 000milliseconds (1970-01-01T00:00:00.000Z)
      2. Convert this to locale date (by adding the timezone offset) - it will become 1970-01-01T05:30:00.000Z in IST
      3. Use the date format to format this date intothe display format (I used the format string as MM/DD/YYYY)

      Actual Results:
      The formatter returns an empty string

      Expected Results:
      The formatter to return a correct formatted string

      Workaround (if any):
      Adding/subtracting even 1 millisecond can do the trick, but in that case, the displayed date would be wrong.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: