From a33f95df3f1bc9da21e5bc72773bd5ed627c34b7 Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Mon, 23 Feb 2004 14:22:50 +0000 Subject: [PATCH] now displaysing comment_date and comment_time as local dates instead of GMT git-svn-id: http://svn.automattic.com/wordpress/trunk@924 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-comment.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/template-functions-comment.php b/wp-includes/template-functions-comment.php index cb74fcca3d..829bec61e0 100644 --- a/wp-includes/template-functions-comment.php +++ b/wp-includes/template-functions-comment.php @@ -210,18 +210,18 @@ function comment_excerpt() { function comment_date($d='') { global $comment; 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 { - echo mysql2date($d, $comment->comment_date); + echo mysql2date($d, get_date_from_gmt($comment->comment_date)); } } function comment_time($d='') { global $comment; 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 { - echo mysql2date($d, $comment->comment_date); + echo mysql2date($d, get_date_from_gmt($comment->comment_date)); } }