From b9863c884901e702515c67ec6c5fc38e01c55a8d Mon Sep 17 00:00:00 2001 From: gggeek Date: Sat, 21 Jan 2023 13:24:31 +0000 Subject: [PATCH] manual --- doc/manual/phpxmlrpc_manual.adoc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 -- 2.47.0