]> granicus.if.org Git - php/commitdiff
MFB: Fixed bug #44996 (xmlrpc_decode() ignores time zone on
authorIlia Alshanetsky <iliaa@php.net>
Wed, 13 May 2009 14:23:29 +0000 (14:23 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 13 May 2009 14:23:29 +0000 (14:23 +0000)
iso8601.datetime)

ext/xmlrpc/xmlrpc-epi-php.c

index d0f1fa573c81cec50444fa215a3fac56876d1a89..6bb1f19930884cf87ed789ba2c5568ea99e12b55 100644 (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);