summaryrefslogtreecommitdiff
path: root/ext/xmlrpc/xmlrpc-epi-php.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2009-05-13 14:23:14 +0000
committerIlia Alshanetsky <iliaa@php.net>2009-05-13 14:23:14 +0000
commit46e28fb0213ca315067893639280b9e49fe1feee (patch)
treec65a692e781a51b052ab51b0fddf10b1954942de /ext/xmlrpc/xmlrpc-epi-php.c
parent539b7a2154b9db710447ef0696c80843d303584b (diff)
downloadphp-git-46e28fb0213ca315067893639280b9e49fe1feee.tar.gz
Fixed bug #44996 (xmlrpc_decode() ignores time zone on iso8601.datetime)
# Original patch by kawai at apache dot org
Diffstat (limited to 'ext/xmlrpc/xmlrpc-epi-php.c')
-rw-r--r--ext/xmlrpc/xmlrpc-epi-php.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/xmlrpc/xmlrpc-epi-php.c b/ext/xmlrpc/xmlrpc-epi-php.c
index d3742e8cc3..b26c13cd98 100644
--- a/ext/xmlrpc/xmlrpc-epi-php.c
+++ b/ext/xmlrpc/xmlrpc-epi-php.c
@@ -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);