mirror of
https://github.com/php/php-src.git
synced 2026-04-29 11:13:36 +02:00
MFB: Fixed bug #44996 (xmlrpc_decode() ignores time zone on
iso8601.datetime)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user