WordPress.org

Make WordPress Core

Ticket #1075: strtotime_gmt.diff

File strtotime_gmt.diff, 750 bytes (added by JPigford, 9 years ago)
  • index.php

     
    3939foreach ($scheduled as $post) { 
    4040        if ($post->post_title == '') 
    4141                $post->post_title = sprintf(__('Post #%s'), $post->ID); 
    42         echo "<li><a href='post.php?action=edit&amp;post=$post->ID' title='" . __('Edit this post') . "'>$post->post_title</a> in " . human_time_diff( current_time('timestamp', 1), strtotime($post->post_date_gmt) )  . "</li>"; 
     42        echo "<li><a href='post.php?action=edit&amp;post=$post->ID' title='" . __('Edit this post') . "'>$post->post_title</a> in " . human_time_diff( current_time('timestamp', 1), strtotime($post->post_date_gmt. ' GMT') )  . "</li>"; 
    4343} 
    4444?>  
    4545</ul>