ID:               35887
 User updated by:  mattsch at gmail dot com
 Reported By:      mattsch at gmail dot com
 Status:           Open
 Bug Type:         WDDX related
 Operating System: Gentoo
 PHP Version:      5.1.1
 New Comment:

Also note under Time zone processing:
http://livedocs.macromedia.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/XML11.htm

Date-time values in WDDX are represented using a subset of the ISO8601
format. Time zone information is represented as an hour/minute offset
from Coordinated Universal Time (UTC); for example,
"2002-9-8T12:6:26-4:0".


Previous Comments:
------------------------------------------------------------------------

[2006-01-04 00:04:48] mattsch at gmail dot com

Taken from http://www.openwddx.org/downloads/dtd/wddx_dtd_10.txt:

Date-time values-
Date-time values are encoded according to the full form of ISO8601,
e.g., 1998-9-15T09:05:32+4:0. Note that single-digit values for months,
days, hours, minutes, or seconds do not need to be zero-prefixed. While
timezone information is optional, it must be successfully parsed and
used to convert to local date-time values. Efforts should me made to
ensure that the internal representation of date-time values does not
suffer from Y2K problems and covers a sufficient range of dates. In
particular, years must always be represented with four digits.

------------------------------------------------------------------------

[2006-01-03 23:53:56] mattsch at gmail dot com

This not bogus!  PHP 5.0.4 parses this date.  It doesn't matter if it's
not the proper iso format.  Allaire made wddx in Coldfusion and it has
been outputting dates in that format since day 1.  Take a look at this
link which is what coldfusion wddx outputs:
http://www.silvertoncasino.com/events/titles.cfm (This server is
running Coldfusion MX 6.1)

------------------------------------------------------------------------

[2006-01-03 23:43:24] [EMAIL PROTECTED]

2006-1-6T0:0:0-8:0 is not a valid wddx format (which follows ISO8601,
http://www.cl.cam.ac.uk/~mgk25/iso-time.html)

------------------------------------------------------------------------

[2006-01-03 23:12:21] mattsch at gmail dot com

On php 5.0.4 this script outputs: 1136534400
On php 5.1.1 this script outputs: 2006-1-6T0:0:0-8:0

<?php
$eventsXML = "<wddxPacket version='1.0'><header/><data><recordset
rowCount='1' fieldNames='eventDate'
type='coldfusion.sql.QueryTable'><field
name='eventDate'><dateTime>2006-1-6T0:0:0-8:0</dateTime></field></recordset></data></wddxPacket>";
$eventsXML = wddx_deserialize($eventsXML);
echo $eventsXML['eventDate'][0];
?>

------------------------------------------------------------------------

[2006-01-03 21:31:37] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.

Without external files please...

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/35887

-- 
Edit this bug report at http://bugs.php.net/?id=35887&edit=1

Reply via email to