Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.5

Request #19558 ISO8601 implementation
Submitted: 2012-08-10 18:43 UTC
From: pataprout Assigned:
Status: Open Package: XML_RPC2 (version 1.1.1)
PHP Version: 5.4.4 OS: Debian
Roadmaps: (Not assigned)    
Subscription  


 [2012-08-10 18:43 UTC] pataprout (Alexandre AndrĂ©)
Description: ------------ Using ISO8601, the dates are represented as follows: - With a TimeZoneDescriptor, UTC (Z): 20130909T10:03:12Z - With a TimeZoneDescriptor, UTC+2 (+0200): 20130909T10:03:12+0200 - With a TimeZoneDescriptor, UTC-2 (-0200): 20130909T10:03:12-0200 <= UTC-2 - Without a TimeZoneDescriptor, assumed to be a local time according to ISO8601: 20130909T10:03:12 Test script: --------------- <?php //Please see the debug file attached before running this script to understand echo date('d/m/Y H:i:s', 1344600192); ?> Expected result: ---------------- 10/08/2012 12:03:12 Actual result: -------------- 10/08/2012 14:03:12

Comments

 [2012-08-10 18:50 UTC] pataprout (Alexandre AndrĂ©)
A server is sending me this : <member> <name>date_created</name> <value><dateTime.iso8601>20120810T12:03:12</dateTime.iso8601></value> </member> XML_RPC2 returns me this : [date_created] => stdClass Object ( [scalar] => 20120810T12:03:12 [xmlrpc_type] => datetime [timestamp] => 1344600192 ) On my Timezone, the given timestamp (1344600192) correspond to 10/08/2012 14:03:12. The timestamp is false, since when we don't provide a TimezoneDescriptor to XML_RPC2 it assumes the time is UTC where it should assume it is a local time
 [2013-02-19 04:23 UTC] florin (Florin Asavoaie)
Hi, I have tested this and it appears like you are using the Xmlrpcext backend and the actual bug is occurring in the xmlrpc_decode function from the XMLRPC-EPI PHP extension. I have submitted PHP bug number 64241 in order to get a fix for this. Meanwhile, you could try the PHP backend as, from my tests, it appears to correctly use the local timezone. Waiting for your confirmation.