Make WordPress Core


Ignore:
Timestamp:
05/14/2009 02:00:32 AM (15 years ago)
Author:
ryan
Message:

Don't localize dates where not appropriate. Props Denis-de-Bernardy, hakre. fixes #9730

File:
1 edited

Legend:

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

    r11204 r11323  
    465465        return; // don't throttle admins
    466466    if ( $lasttime = $wpdb->get_var( $wpdb->prepare("SELECT comment_date_gmt FROM $wpdb->comments WHERE comment_author_IP = %s OR comment_author_email = %s ORDER BY comment_date DESC LIMIT 1", $ip, $email) ) ) {
    467         $time_lastcomment = mysql2date('U', $lasttime);
    468         $time_newcomment  = mysql2date('U', $date);
     467        $time_lastcomment = mysql2date('U', $lasttime, false);
     468        $time_newcomment  = mysql2date('U', $date, false);
    469469        $flood_die = apply_filters('comment_flood_filter', false, $time_lastcomment, $time_newcomment);
    470470        if ( $flood_die ) {
Note: See TracChangeset for help on using the changeset viewer.