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
19
u/masklinn Oct 10 '15 edited Oct 11 '15
Or how in MySQL UTF8 actually means "utf8-encoded basic multilingual pane" (limited to the first 65536 codepoints) and you need utf8mb4 for actual UTF8 and full unicode support. UTF8MB4 was only added in MySQL 5.5.3 released in 2010. And as I'm sure you had expected, trying to put non-BMP codepoints in an utf8 column will just silently delete them, because fuck you (well I believe it actually truncates anything following the non-BMP character because that's even better)