DateTime::createFromFormat and date() should support same format letters
stenno opened this issue · 0 comments
stenno commented
Differences in format letters (specifically "v") make the DateTime format constants unusable for createFromFormat.
Example:
DATE_RFC3339_EXTENDED has the value "Y-m-d\TH:i:s.vP".
This predefined format will work for date(), but not for DateTime::createFromFormat, as milliseconds require the format symbol "v".
createFromFormat should support "v" as milliseconds symbol to support the DateTime format constants.
Closing the issue, because it is already addressed here https://bugs.php.net/bug.php?id=76009