zend amf php date time mapping with flex object issue

309 Views Asked by At

we have requirement to list classes schedule in date object in flex. php&mysql is its backend. datetime object is send to flex from php using zend amf. when i map datetime object with flex f, it takes some default time zone. (added gmt+5.30 to original datetime object). for example if the php value is 30-06-2012 02:00 then in flex it shows 30-06-2012 07:30. what's the workaround to avoid this?

php $stDtObj = new DateTime('30-06-2012 02:00');

1

There are 1 best solutions below

0
Kevin Remisoski On

Florent's answer is correct. You can easily translate an integer timestamp in Flex to a more readable date. Trying to format a DateTime from PHP in Flex would be a lot more work... =/