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

DateFormatter.format don't display 01/01/1970 01:00:00

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Adobe Flex SDK 2.0.1 (Release)
    • None
    • Formatters
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Firefox 2.x
      Language Found: English

    Description

      Steps to reproduce:
      1. create a new DateFormatter object date_formatter_1 with formatString="JJ:NN"
      2. create a new Date(1970, 0, 1, 1, 0, 0) object date_1
      3. try to display it in a Label: <mx:Label text="

      {date_formatter_1.format(date_1)}

      />

      Actual Results:
      Empty string

      Expected Results:
      01:00

      Workaround (if any):
      creating a new Date(1970, 0, 1, 1, 0, 30) object, with a difference of 30 seconds from this date, date_formatter works fine

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment