iliaa           Wed May 13 14:23:14 2009 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/xmlrpc xmlrpc-epi-php.c 
  Log:
  Fixed bug #44996 (xmlrpc_decode() ignores time zone on iso8601.datetime)
  # Original patch by kawai at apache dot org
  
http://cvs.php.net/viewvc.cgi/php-src/ext/xmlrpc/xmlrpc-epi-php.c?r1=1.39.2.5.2.6.2.20&r2=1.39.2.5.2.6.2.21&diff_format=u
Index: php-src/ext/xmlrpc/xmlrpc-epi-php.c
diff -u php-src/ext/xmlrpc/xmlrpc-epi-php.c:1.39.2.5.2.6.2.20 
php-src/ext/xmlrpc/xmlrpc-epi-php.c:1.39.2.5.2.6.2.21
--- php-src/ext/xmlrpc/xmlrpc-epi-php.c:1.39.2.5.2.6.2.20       Thu Apr  2 
15:52:57 2009
+++ php-src/ext/xmlrpc/xmlrpc-epi-php.c Wed May 13 14:23:14 2009
@@ -51,7 +51,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: xmlrpc-epi-php.c,v 1.39.2.5.2.6.2.20 2009/04/02 15:52:57 felipe Exp $ 
*/
+/* $Id: xmlrpc-epi-php.c,v 1.39.2.5.2.6.2.21 2009/05/13 14:23:14 iliaa Exp $ */
 
 /**********************************************************************
 * BUGS:                                                               *
@@ -1344,8 +1344,8 @@
                        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);



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to