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

DateTimeFormatter - method setStyle() cannot set locale to a DateTimeFormatter instance when the instance is defined in ActionScript

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • Adobe Flex SDK Previous
    • Adobe Flex SDK Previous
    • 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.Define a DateTimeFormatter in ActionSctipt with locale 'zh-CN':
      public var dtf:spark.formatters.DateTimeFormatter = new spark.formatters.DateTimeFormatter('zh-CN');
      2.Set locale to 'ru-RU' by calling dtf.setStyle('locale','ru-RU');
      3.Get weekday names by calling trace(dtf.getWeekdayNames());
      4.Verify whether the returned weekday names are in Russian

      Actual Results:
      The return value of getWeekdayNames() are in Chinese:
      星期日,星期一,星期二,星期三,星期四,星期五,星期六

      Expected Results:
      The return value of getWeekdayNames() are in Russian:
      воскресенье,понедельник,вторник,среда,четверг,пятница,суббота

      Attachment: sample code to repro this bug

      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: