nihavend opened a new issue #757: DateFormatter.parseDateString throws exception
URL: https://github.com/apache/royale-asjs/issues/757
 
 
   The exception :
   
   
![image](https://user-images.githubusercontent.com/5983818/76669258-f2703e80-659b-11ea-9436-9c91c74aab6c.png)
   
   Source code for test :
   ```
   <?xml version="1.0" encoding="latin5" ?>
   
   <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
                           xmlns:s="library://ns.apache.org/royale/spark"
                           xmlns:mx="library://ns.apache.org/royale/mx"
                           height="600" width="800"
                           
creationComplete="group1_creationCompleteHandler(event)">
        
   
   <fx:Script>
        <![CDATA[
        import mx.formatters.DateFormatter;
                
        protected function group1_creationCompleteHandler(event:FlexEvent):void 
{
                var dateStr:String = "Fri Mar 13 2020 01:00:00 GMT+0300 
(GMT+03:00)";
                
                var dateFormatter:DateFormatter = new DateFormatter();
                dateFormatter.formatString = 'JJ:NN:SS DD/MM/YYYY';
                var txt:String = 
dateFormatter.format(DateFormatter.parseDateString(dateStr));
                trace(txt);
        }
                
        ]]>
   </fx:Script>
        
        
   </s:Application>
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to