now displaysing comment_date and comment_time as local dates instead of GMT

git-svn-id: https://develop.svn.wordpress.org/trunk@924 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
michelvaldrighi 2004-02-23 14:22:50 +00:00
parent 07252436c6
commit 2427485d63
1 changed files with 4 additions and 4 deletions

View File

@ -210,18 +210,18 @@ function comment_excerpt() {
function comment_date($d='') { function comment_date($d='') {
global $comment; global $comment;
if ('' == $d) { if ('' == $d) {
echo mysql2date(get_settings('date_format'), $comment->comment_date); echo mysql2date(get_settings('date_format'), get_date_from_gmt($comment->comment_date));
} else { } else {
echo mysql2date($d, $comment->comment_date); echo mysql2date($d, get_date_from_gmt($comment->comment_date));
} }
} }
function comment_time($d='') { function comment_time($d='') {
global $comment; global $comment;
if ($d == '') { if ($d == '') {
echo mysql2date(get_settings('time_format'), $comment->comment_date); echo mysql2date(get_settings('time_format'), get_date_from_gmt($comment->comment_date));
} else { } else {
echo mysql2date($d, $comment->comment_date); echo mysql2date($d, get_date_from_gmt($comment->comment_date));
} }
} }