[wp-trac] [WordPress Trac] #25051: Wrong time displayed for restored posts

WordPress Trac noreply at wordpress.org
Thu Aug 15 15:02:51 UTC 2013


#25051: Wrong time displayed for restored posts
--------------------------+-----------------------------
 Reporter:  pavelevap     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Revisions     |    Version:  3.6
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 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...

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25051>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list