Doc #70115 [NEW]: DATE_ISO8601 const not compatible with ISO standard

From: Date: Wed, 22 Jul 2015 14:11:26 +0000
Subject: Doc #70115 [NEW]: DATE_ISO8601 const not compatible with ISO standard
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12538@lists.php.net to get a copy of this message
From: adambro at o2 dot pl Operating system: N/A PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:DATE_ISO8601 const not compatible with ISO standard Description: ------------ --- From manual page: http://www.php.net/class.datetime --- The constant DATE_ISO8601 is not compatible with ISO standard. The standard says in extended format (with colons) everything has to be in that notation, so having timezone represented as "+0000" (O in const string) is invalid. It should be "+00:00" (P in const). There's a #55272 bug, but it was closed due to wrong premise that basic format can be mixed with extended one. It is being explained in the comment already: http://php.net/manual/en/class.datetime.php#116085 Using date("c") yields correct format, also DATE_RFC3339 seem to be compatible. I've stumbled upon the bug while exchanging data with Java system. -- Edit bug report at https://bugs.php.net/bug.php?id=70115&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70115&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70115&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70115&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70115&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70115&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70115&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70115&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70115&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70115&r=support Expected behavior: https://bugs.php.net/fix.php?id=70115&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70115&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70115&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70115&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70115&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70115&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70115&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70115&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70115&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70115&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70115&r=mysqlcfg

« previous php.doc.bugs (#12538) next »