From: gggeek Date: Sat, 21 Jan 2023 13:24:31 +0000 (+0000) Subject: manual X-Git-Tag: 4.10.0~115 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=b9863c884901e702515c67ec6c5fc38e01c55a8d;p=plcapi.git manual --- diff --git a/doc/manual/phpxmlrpc_manual.adoc b/doc/manual/phpxmlrpc_manual.adoc index 2fa0ea67..20bb60fe 100644 --- a/doc/manual/phpxmlrpc_manual.adoc +++ b/doc/manual/phpxmlrpc_manual.adoc @@ -271,12 +271,13 @@ dateTime.iso8601 value will by default return the string representation of the d Datetime conversion can't be safely done in a transparent manner as the XML-RPC specification explicitly forbids passing of timezone specifiers in ISO8601 format dates. You can, however, use multiple techniques to transform the date string -into another representation of a time stamp: -* use the `PhpXmlRpc\Helper\Date` class to decode the date string into a unix timestamp; +into another representation of a time stamp, and take care of timezones by yourself: +* use the `PhpXmlRpc\Helper\Date` class to convert the date string into a unix timestamp; * set `PhpXmlRpc\PhpXmlRpc::$xmlrpc_return_datetimes = true` to always get back a php DateTime from received xml (in which case the conversion is done using the timezone set in php.ini). -* use the `PhpXmlRpc\Encoder::decode` method with the 'dates_as_objects' option to get back a php DateTime (in which case - the conversion is done using the `strtotime` function, which uses the timezone set in php.ini). +* use the `PhpXmlRpc\Encoder::decode` method with the 'dates_as_objects' option to get back a php DateTime from a + single Value object (in which case the conversion is done using the `strtotime` function, which uses the timezone set + in php.ini). ===== double