Add format RFC 7231 warning
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.
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.
I would argue that this patch in php-src is therefore wrong.
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.
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).
@derickr, this is not a bug. This is constant designed specifically this way. I fixed the indentation.
The bug is that the constant just makes it show as it is UTC/GMT without actually adjusting the timezone of the DateTime object that is being formatted.