Changeset 2253

Show
Ignore:
Timestamp:
02/11/05 01:21:43 (4 years ago)
Author:
saxmatt
Message:

Deal with timezone diff correctly

Files:

Legend:

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

    r2248 r2253  
    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( time(), 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) )  . "</li>"; 
    4343} 
    4444?>