Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateTime::createFromFormat and date() should support same format letters #219

Closed
stenno opened this issue May 22, 2018 · 0 comments
Closed

Comments

@stenno
Copy link

stenno commented May 22, 2018

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

@stenno stenno closed this as completed May 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant