mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
comments template functions back to localtime
git-svn-id: http://svn.automattic.com/wordpress/trunk@998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
caeaf47bbb
commit
f043e71fdd
@ -210,18 +210,18 @@ function comment_excerpt() {
|
||||
function comment_date($d='') {
|
||||
global $comment;
|
||||
if ('' == $d) {
|
||||
echo mysql2date(get_settings('date_format'), get_date_from_gmt($comment->comment_date));
|
||||
echo mysql2date(get_settings('date_format'), $comment->comment_date);
|
||||
} else {
|
||||
echo mysql2date($d, get_date_from_gmt($comment->comment_date));
|
||||
echo mysql2date($d, $comment->comment_date);
|
||||
}
|
||||
}
|
||||
|
||||
function comment_time($d='') {
|
||||
global $comment;
|
||||
if ($d == '') {
|
||||
echo mysql2date(get_settings('time_format'), get_date_from_gmt($comment->comment_date));
|
||||
echo mysql2date(get_settings('time_format'), $comment->comment_date);
|
||||
} else {
|
||||
echo mysql2date($d, get_date_from_gmt($comment->comment_date));
|
||||
echo mysql2date($d, $comment->comment_date);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user