I am not 100% sure but after looking at the Zend_AMF source it looks like Flex dates get converted to Zend_Date objects. You can just update the code I provided to check for this instead of OrbDateTime. If you want to confirm what type Zend converts your dates to you can simply use the get_class php method to return the class name to Flex and trace it out. Like this
public function dateTest($date)
{
return get_class($date);
}
zend reply
I am not 100% sure but after looking at the Zend_AMF source it looks like Flex dates get converted to Zend_Date objects. You can just update the code I provided to check for this instead of OrbDateTime. If you want to confirm what type Zend converts your dates to you can simply use the get_class php method to return the class name to Flex and trace it out. Like this
public function dateTest($date)
{
return get_class($date);
}