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

ext/xmlrpc/xmlrpc-epi-php.c

index d3742e8cc330ba8c036eaf146ab46d5447315d98..b26c13cd989742fb42cc1e3533a82cea6bdbac5d 100644 (file)
@@ -1344,8 +1344,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);