#36224 [NEW]: date(DATE_ATOM) gives wrong resulsts

From: Date: Tue, 31 Jan 2006 10:56:00 +0000
Subject: #36224 [NEW]: date(DATE_ATOM) gives wrong resulsts
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-92685@lists.php.net to get a copy of this message
From: bjori@php.net Operating system: FreeBSD6.0-RELEASE PHP version: 5CVS-2006-01-31 (CVS) PHP Bug Type: Date/time related Bug description: date(DATE_ATOM) gives wrong resulsts Description: ------------ Quote from the RFC3339 (5.6. Internet Date/Time Format): time-numoffset = ("+" / "-") time-hour ":" time-minute time-offset = "Z" / time-numoffset However, DATE_ATOM does not insert that ":" in the time-offset as required. Reproduce code: --------------- php -r 'print date(DATE_ATOM)'; Expected result: ---------------- 2006-01-31T11:50:05+01:00 Actual result: -------------- 2006-01-31T11:50:05+0100 -- Edit bug report at http://bugs.php.net/?id=36224&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36224&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36224&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36224&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36224&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36224&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36224&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36224&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36224&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36224&r=support Expected behavior: http://bugs.php.net/fix.php?id=36224&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36224&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36224&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36224&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36224&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36224&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36224&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36224&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36224&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36224&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36224&r=mysqlcfg

« previous php.bugs (#92685) next »