Doc #80022 [NEW]: Inconsistency DateTimeInterface::ISO8601
From: pablo at antweb dot es
Operating system:
PHP version: 7.4.9
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Inconsistency DateTimeInterface::ISO8601
Description:
------------
In https://www.php.net/manual/en/class.datetime.php
we have
const string DateTimeInterface::ISO8601 = "Y-m-d\TH:i:sO" ;
The format 0 = Difference to Greenwich time (GMT) without colon between
hours and minutes Example: +0200
(https://www.php.net/manual/en/datetime.format.php)
But the format('c') full date/time define:
c ISO 8601 date (added in PHP 5) 2004-02-12T15:19:21+00:00
We can to see that the format is inconsistency, format "c" is not equal
to Y-m-d\TH:i:sO it would be 2004-02-12T15:19:21+0000
--
Edit bug report at https://bugs.php.net/bug.php?id=80022&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80022&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80022&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80022&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80022&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80022&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80022&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80022&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80022&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80022&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80022&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80022&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80022&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80022&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80022&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80022&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80022&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80022&r=mysqlcfg
Thread (6 messages)
- pablo at antweb dot es