Make WordPress Core

Changeset 924


Ignore:
Timestamp:
02/23/2004 02:22:50 PM (21 years ago)
Author:
michelvaldrighi
Message:

now displaysing comment_date and comment_time as local dates instead of GMT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-comment.php

    r903 r924  
    211211    global $comment;
    212212    if ('' == $d) {
    213         echo mysql2date(get_settings('date_format'), $comment->comment_date);
    214     } else {
    215         echo mysql2date($d, $comment->comment_date);
     213        echo mysql2date(get_settings('date_format'), get_date_from_gmt($comment->comment_date));
     214    } else {
     215        echo mysql2date($d, get_date_from_gmt($comment->comment_date));
    216216    }
    217217}
     
    220220    global $comment;
    221221    if ($d == '') {
    222         echo mysql2date(get_settings('time_format'), $comment->comment_date);
    223     } else {
    224         echo mysql2date($d, $comment->comment_date);
     222        echo mysql2date(get_settings('time_format'), get_date_from_gmt($comment->comment_date));
     223    } else {
     224        echo mysql2date($d, get_date_from_gmt($comment->comment_date));
    225225    }
    226226}
Note: See TracChangeset for help on using the changeset viewer.