Issue Type: Bug Created: 2011-07-21T14:08:48.000+0000 Last Updated: 2011-07-28T21:26:17.000+0000 Status: Resolved Fix version(s): - 1.11.10 (04/Aug/11)
Reporter: Maciej Hołyszko (mh) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_XmlRpc_Client
Related issues: - ZF-4249
new Zend_XmlRpc_Value_DateTime('1900-01-01T00:00:00'); new Zend_XmlRpc_Value_DateTime('2040-01-01T00:00:00');
Results in throwing the Zend_XmlRpc_Value_Exception: Cannot convert given value '1900-01-01T00:00:00' to a timestamp
"strtotime" function should not be used at all for checking the date format inside Zend_XmlRpc_Value_DateTime object.
It was reported once in ZF-4249, but got resolved with only a partial fix. You forgot about parsing dateTime values which are retrieved in responses from XMLRPC server in the following format: <dateTime.iso8601>1900-01-01T00:00:00</dateTime.iso8601> (string representation, not a Zend_Date or DateTime objects)
Thank you in advance for fixing this.
Posted by Matthew Weier O'Phinney (matthew) on 2011-07-28T21:26:17.000+0000
Fixed in trunk and 1.11 release branch. Comparisons in tests were changed to use DateTime as well, to ensure that automatic timezone parsing allows for clean comparison of dates.
Have you found an issue?
See the Overview section for more details.