Opened 13 years ago
Closed 13 years ago
#25051 closed defect (bug) (fixed)
Wrong time displayed for restored posts
| Reported by: | pavelevap | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.6.1 |
| Component: | Revisions | Version: | 3.6 |
| Severity: | normal | Keywords: | has-patch fixed-major |
| Cc: | Focuses: |
Description
There is a message "Previously restored by..." displayed in Revisions admin metabox when post was restored. Value for $time_diff is right, but $date is wrong. It shows current date everytime and not the date of restoration. Problem is related to $restored_from_meta[ 'restored_time' ] which is Unix timestamp and not string. So, strtotime() does not make sense here...
Attached is a simple patch to illustrate described issue. It works for me, but I am not familiar with date/time functions, maybe there is better solution...
Attachments (2)
Change History (14)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Per IRC, the plan here is to actually remove this whole section of the revisions box. It's ugly, not very useful, and is in a box we want to get rid of anyway. We're not going to prevent collecting the data, just remove the UI.