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

Locale fr_FR with different monthNames and DateFormatter doesnt provide expected result

    XMLWordPrintableJSON

Details

    Description

      Steps to reproduce:
      1. work with locale = fr_FR, with compiled swc files for locale with "SharedResources.properties" having value
      monthNames=Janvier,Février,Mars,Avril,Mai,Juin,Juillet,Août,Septembre,Octobre,Novembre,Décembre
      2.import mx.formatters.DateFormatter;
      private function tracer():void{
      var _dateFormatter:DateFormatter = new DateFormatter();
      for(var i:int=0; i<12; i++)

      { var curdate: Date = new Date(); curdate.month =i; var onChangeText:String = _dateFormatter.format( curdate.toDateString() ); trace(onChangeText) }

      }
      3. compile the above code

      Actual Results:
      the onChangeText provides null value for most of the months

      Expected Results:
      the onChangeText should provide date string properly.

      Workaround (if any):

      change "SharedResources.properties" to value with
      monthNames=January,February,March,April,May,June,July,August,September,October,November,December
      and recompile swc files

      in case of using date field component, reassign monthNames as below:
      <mx:DateField id="df" change="tracer()" selectedDate="

      {new Date()}

      " monthNames="

      {['Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre']}

      "/>

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: