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

milliseconds passed in Date not show up in Date.toString() or Date.toUTCString().

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • None
    • mx: DateField
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1.create a date with milliseconds passed
      var t:Date=new Date(2009,08,17,15,39,20,789);
      2. check date.toString(), toUTCString()
      ->milliseconds not showing up

      Thu Sep 17 15:39:20 GMT-0400 2009
      Thu Sep 17 19:39:20 2009 UTC

      3. so when I use

      <mx:DateFormatter id="dateFormatter" formatString="EEEE, MMMM DD, YYYY at HH:NN:SS:QQQ A" />
      to format the date,

      formattedDate.text += dateFormatter.format(date.toString());
      or formattedDate.text += dateFormatter.format(date.toUTCString());
      the result is:
      Thursday, September 17, 2009 at 15:39:20:000 PM

      I am expecting:
      Thursday, September 17, 2009 at 15:39:20:789 PM

      Expected Results:

      milliseconds should show up

      Workaround (if any):

      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: