[DOC-CVS] [doc-en] master: Add compatibility note to 'c' date format (#4847)
[email protected] (Martin Melka via GitHub)
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Martin Melka (melkamar)
Committer: GitHub (web-flow)
Pusher: Crell
Date: 2025-10-03T10:04:59-05:00
Commit: https://github.com/php/doc-en/commit/7d78942045456715efcc7d54e56096d4187dda3c
Raw diff: https://github.com/php/doc-en/commit/7d78942045456715efcc7d54e56096d4187dda3c.diff
Add compatibility note to 'c' date format (#4847)
The 'c' format produces invalid ISO8601 dates for years 10000
and above. This is not necessarily wrong, but the documentation
should warn about this explicitly.
Changed paths:
M reference/datetime/datetimeinterface/format.xml
Diff:
diff --git a/reference/datetime/datetimeinterface/format.xml b/reference/datetime/datetimeinterface/format.xml
index c22d0c467f74..39a49ecbf57b 100644
--- a/reference/datetime/datetimeinterface/format.xml
+++ b/reference/datetime/datetimeinterface/format.xml
@@ -321,7 +321,7 @@
</row>
<row>
<entry><literal>c</literal></entry>
- <entry>ISO 8601 date</entry>
+ <entry>ISO 8601 date. Only compatible with the non-expanded format (up to year 9999). Later dates will result in an invalid string. For later dates and expanded format, see <literal>x</literal> and <literal>X</literal>.</entry>
<entry>2004-02-12T15:19:21+00:00</entry>
</row>
<row>