-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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 date format in Last-Modifed Header #20905
Conversation
1. No need to translate Last-Modified header 2. Append " GMT" to date format
There was a reason you were asked to complete various sections when you submitted this. Please do so. |
done |
Pull request solves an Issue of incorrect sending of response header (Last-Modified) |
It is correct to add GMT as it is part of the rfc1123 specification. As it is always GMT and not a timezone I believe this is more correct than @mbabker suggestion and follows the recommendation at PHP.net |
Honestly either way works. The |
Sorry that there were no responses for such a long time. Can you add the suggestion from Michael and update the test instructions so we can properly test it. In the meantime I'm closing the pr, when ready, please reopen again. Thanks for your help making Joomla better. |
I apologize, my impression was that this pr is not complete. Reopening again. |
I have tested this item ✅ successfully on e840c86 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20905. |
I have tested this item ✅ successfully on e840c86 Without this PR applied it is "last-modified: Thu, 01 Jan 1970 00:00:00 GMT". With this PR applied it is "last-modified: Wed, 17 Aug 2005 00:00:00 GMT". I used Russian site language for the test. So it seems the browser can't understand the Russian day and month names and so can't understand the time stamp and so sets it to zero = begin of epoch. With the patch of this PR applied I get the expected value. With the patch applied but without the code snippet from the testing instructions, everything works as well as before regarding the last-modified header. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20905. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20905. |
Will merge this here now. Thanks 🥳 |
Pull Request for Issue #20905.
Summary of Changes
Testing Instructions
Expected result
Last-Modified: Wed, 17 Aug 2005 00:00:00 GMT
Actual result
Last-Modified: Ср, 17 авг 2005 00:00:00