|
|
|
@ -2962,6 +2962,9 @@ static xmlNodePtr to_xml_datetime_ex(encodeTypePtr type, zval *data, char *forma |
|
|
|
timestamp = Z_LVAL_P(data); |
|
|
|
ta = php_localtime_r(×tamp, &tmbuf); |
|
|
|
/*ta = php_gmtime_r(×tamp, &tmbuf);*/ |
|
|
|
if (!ta) { |
|
|
|
soap_error1(E_ERROR, "Encoding: Invalid timestamp %ld", Z_LVAL_P(data)); |
|
|
|
} |
|
|
|
|
|
|
|
buf = (char *) emalloc(buf_len); |
|
|
|
while ((real_len = strftime(buf, buf_len, format, ta)) == buf_len || real_len == 0) { |
|
|
|
|