Make WordPress Core


Ignore:
Timestamp:
03/22/2005 05:33:05 PM (20 years ago)
Author:
ryan
Message:

strtotime needs to now that the time string is in GMT. http://mosquito.wordpress.org/view.php?id=1075

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/index.php

    r2433 r2471  
    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?>
Note: See TracChangeset for help on using the changeset viewer.