title: Flex 4 utc date time format problem
body: <p>here are my functions they work fine when timeoffset is  round number(1,2,3,4...),but when is 3.5(3:30), 4.5(4:30) it doesnt work.
  Can someone help me with this :</p>
  
  <pre><code>private function init_vars():void
              {
  timeZoneOffset = FlexGlobals.topLevelApplication.parameters.clock_time_zone; // I load this with js
                  timeZoneOffset = 5,50; // just for test
              }
  
              private function tick(event:TimerEvent):void 
              {                   
                  var local: Date = new Date();
  
                  var utc: Date = new Date(local.getTime() + (local.getTimezoneOffset() * 60000));
  
                  var utcTime:Number=utc.getTime();
  
  
  
  
                  var new_offset_date:Number = utcTime + ((3600000) * timeZoneOffset);
                  var new_date:Date = new Date(new_offset_date);              
                  currentTime = new Date(new_date);
                  showTime(currentTime); // another function just to display time                                 
              } 
  
  
  private function showTime(time:Date):void
              {
                  seconds = time.getSeconds();
                  minutes= time.getMinutes();
                  hours= time.getHours();
  
                              //rotate
                  this.secondsPointer.rotation = (seconds * 6) - 90;
                  this.minutesPointer.rotation = (minutes * 6) - 90;              
                  this.hoursPointer.rotation = (hours * 30) + (minutes * 0.5) - 90;
                  this.secondsPointer.visible = true;
                  this.minutesPointer.visible = true;
                  this.hoursPointer.visible = true;                           
              }
  </code></pre>