Make WordPress Core

Ticket #783: index.php.diff

File index.php.diff, 871 bytes (added by sethkinast, 20 years ago)
  • index.php

    old new  
    55require_once (ABSPATH . WPINC . '/rss-functions.php');
    66
    77$today = current_time('mysql', 1);
     8$time_adj = time() - (get_settings('gmt_offset') * 3600);
    89?>
    910
    1011<div class="wrap">
     
    3940foreach ($scheduled as $post) {
    4041        if ($post->post_title == '')
    4142                $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>";
     43        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_adj, strtotime($post->post_date_gmt) )  . "</li>";
    4344}
    4445?>
    4546</ul>