1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00

MFB: Fixed bug #44996 (xmlrpc_decode() ignores time zone on

iso8601.datetime)
This commit is contained in:
Ilia Alshanetsky
2009-05-13 14:23:29 +00:00
parent efc82a96da
commit 4decbd9fb7
+2 -2
View File
@@ -1350,8 +1350,8 @@ int set_zval_xmlrpc_type(zval* value, XMLRPC_VALUE_TYPE newtype) /* {{{ */
if (newtype == xmlrpc_datetime) {
XMLRPC_VALUE v = XMLRPC_CreateValueDateTime_ISO8601(NULL, value->value.str.val);
if (v) {
time_t timestamp = XMLRPC_GetValueDateTime(v);
if (timestamp) {
time_t timestamp = (time_t) php_parse_date(XMLRPC_GetValueDateTime_ISO8601(v), NULL);
if (timestamp) {
zval* ztimestamp;
MAKE_STD_ZVAL(ztimestamp);