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

Change the default format to DATE_ATOM in DateTimeFormatter #7

Open
weierophinney opened this issue Dec 31, 2019 · 1 comment
Open
Labels
Milestone

Comments

@weierophinney
Copy link
Member

Is there any reason why DateTime::ISO8601 is still used in DateTimeFormatter?

Taken from the docs:

DateTime::ISO8601
DATE_ISO8601
ISO-8601 (example: 2005-08-15T15:52:01+0000)
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.

DateTime::ATOM
DATE_ATOM
Atom (example: 2005-08-15T15:52:01+00:00)


Originally posted by @geerteltink at zendframework/zend-filter#58

@weierophinney
Copy link
Member Author

Most likely BC compliance: changing it would be a major BC break...


Originally posted by @Ocramius at zendframework/zend-filter#58 (comment)

@gsteel gsteel changed the title DateTimeFormatter Change the default format to DATE_ATOM in DateTimeFormatter Nov 6, 2022
@gsteel gsteel added this to the 3.0.0 milestone Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants