1 Reply Latest reply on Oct 1, 2012 7:24 AM by jfb00

    How to create date in flex based on different timezone?

    pradeepsimha143

      Hi,

       

      I am getting time from J2EE layer to flex as "Fri Sep 28 05:16:37 EDT 2012". This J2ee layer is deployed on Websphere Application Server 5.1 on Unix. But when I instantiate in new Date() in ActionScript 3.0, its throwing me invalid date error.

      So I corrected it as "Fri Sep 28 05:16:37 GMT -0400 2012" (a format flex excepts) and instantiated with new Date(), when I try to print the date value using toString() method, results I get is in IST (where I am running flex web app), so this is completly invalid. How can I preserve timezone in flex?

       

      BTW we are using Adobe Flex 3