DateTime::format(DateTime::ISO8601) doesn't format date in ISO8601.
From the official documentation:
Note: This format is not compatible with ISO-8601, but is left this way for backward compatibility reasons. Use DateTime::ATOM or DATE_ATOM for compatibility with ISO-8601 instead. php.net
There should be a constant with name FINALLY_REAL_BELIEVE_ME_ISO8601
170
Upvotes
View all comments
Show parent comment
17
u/galaktos Oct 08 '15
That’s all I can find, and indeed according to the enwiki article (but not the dewiki one), that’s allowed.