[wp-cvs] wordpress/wp-admin index.php,1.19,1.20

Matthew Mullenweg saxmatt at users.sourceforge.net
Fri Feb 11 01:21:46 GMT 2005


Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19206/wp-admin

Modified Files:
	index.php 
Log Message:
Deal with timezone diff correctly

Index: index.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/index.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** index.php	11 Feb 2005 00:59:50 -0000	1.19
--- index.php	11 Feb 2005 01:21:43 -0000	1.20
***************
*** 40,44 ****
  	if ($post->post_title == '')
  		$post->post_title = sprintf(__('Post #%s'), $post->ID);
! 	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>";
  }
  ?> 
--- 40,44 ----
  	if ($post->post_title == '')
  		$post->post_title = sprintf(__('Post #%s'), $post->ID);
! 	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>";
  }
  ?> 



More information about the cvs mailing list