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

Add format RFC 7231 warning #2296

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add format RFC 7231 warning #2296

wants to merge 2 commits into from

Conversation

jorgsowa
Copy link
Contributor

Format RFC 7231 doesn't take into consideration the timezone of the DateTime object. It shows always GMT designation. It should be reflected in documentation.

@derickr
Copy link
Member

derickr commented Feb 28, 2023

Hmm, I am not sure if this is wise. The implementation discards the timezone, which isn't quite the same as showing it in GMT. The constant is therefore a little misleading.

@derickr
Copy link
Member

derickr commented Feb 28, 2023

I would argue that this patch in php-src is therefore wrong.

@jorgsowa
Copy link
Contributor Author

Hey @derickr. What do you think about merging this warning and implement fix for the constant later. This way developers are informed until the fix is ready.

@derickr
Copy link
Member

derickr commented Aug 17, 2023

I think that the text should indicate that this is currently a known bug, and you should also indent your insertion right (misses an extra space).

@jorgsowa
Copy link
Contributor Author

@derickr, this is not a bug. This is constant designed specifically this way. I fixed the indentation.

@derickr
Copy link
Member

derickr commented Aug 17, 2023 via email

@derickr derickr self-assigned this Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants