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

diff --git a/NEWS b/NEWS
index f9ef5b314e0985326cd9913ca17e012a36a8cc0b..054e5bef2755b3392a8f098261b69c44f0ff8661 100644 (file)
--- 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
index 4dea7be40a956c2e42c0bbec755ffc053731170f..482781e998e5ab1e4ec308fedc9f7eadd308bf24 100644 (file)
@@ -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;