This simple patch adds the date [ using php date(r,timestamp) format ] the Available updates page was generated. The time ago output is also preserved.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | update.report.inc_2.patch | 975 bytes | stevenpatz |
| last_checked.png | 4.91 KB | stevenpatz | |
| update.report.inc_.patch | 958 bytes | stevenpatz |
Comments
Comment #1
tic2000 commentedYou should use
format_date()instead ofdate()Comment #3
stevenpatzUpdated patch to use format_date
Comment #4
tic2000 commented1. In D7 the string concatenation is done with a space before and after the
.. Even before D7 you need to have a space after a,(take a look at the format_date parameters).2. The string inside t() it should not start or end with a space.
3. You should follow the example you already have in the code you change and append the date as the time ago is. This way you will also get rid of the error in your patch that makes a "Last Checked: Last checked: never" message appear when there is no value for $last.
4. One too many new lines.
5. Why do you change REQUEST_TIME to $last?
Comment #6
dwwPlease post your new patch here: #356841: Update status 'last checked time' should output actual date of last check.