From: Ilia Alshanetsky Date: Wed, 13 May 2009 14:25:58 +0000 (+0000) Subject: MFB: Fixed bug #44996 (xmlrpc_decode() ignores time zone on iso8601.datetime). X-Git-Tag: php-5.2.10RC1~94 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82b940adf25665bfc2622e857958a82047b00874;p=php MFB: Fixed bug #44996 (xmlrpc_decode() ignores time zone on iso8601.datetime). --- diff --git a/NEWS b/NEWS index f9ef5b314e..054e5bef27 100644 --- a/NEWS +++ b/NEWS @@ -91,6 +91,8 @@ PHP NEWS setting logging timestamps). (Derick) - Fixed bug #45092 (header HTTP context option not being used when compiled using --with-curlwrappers). (Jani) +- Fixed bug #44996 (xmlrpc_decode() ignores time zone on iso8601.datetime). + (Ilia, kawai at apache dot org) - Fixed bug #43073 (TrueType bounding box is wrong for angle<>0). (Martin McNickle) - Fixed bug #38805 (PDO truncates text from SQL Server text data type diff --git a/ext/xmlrpc/xmlrpc-epi-php.c b/ext/xmlrpc/xmlrpc-epi-php.c index 4dea7be40a..482781e998 100644 --- a/ext/xmlrpc/xmlrpc-epi-php.c +++ b/ext/xmlrpc/xmlrpc-epi-php.c @@ -1300,7 +1300,7 @@ 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); + time_t timestamp = (time_t) php_parse_date(XMLRPC_GetValueDateTime_ISO8601(v), NULL); if(timestamp) { zval* ztimestamp;