6 Replies Latest reply on Nov 3, 2009 2:36 AM by tooMuchTrouble

    Date constructor bug ?


      I have tried the following code in an AS3 script


      var d1:Date = new Date("10/29/1967");

      var d2:Date = new Date("10/30/1967");




      The output is :


      Sun Oct 29 00:00:00 GMT+0200 1967
      Mon Oct 30 00:00:00 GMT+0100 1967


      Can someone explain me why GMT is different ?


      I have made other tries with dates before 10/30/1967 and corresponding Flex dates are all GMT+2.

      With dates after 10/29/1967 all flex dates are GMT+1.


      Is it a Date constructor bug ?


      P.S. I use Flex SDK 3.4.