Changeset 1004

Show
Ignore:
Timestamp:
03/25/04 02:45:32 (5 years ago)
Author:
michelvaldrighi
Message:

now storing emailed posts as localtime+gmt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-mail.php

    r957 r1004  
    108108                $ddate_U = mktime($ddate_H, $ddate_i, $ddate_s, $ddate_m, $ddate_d, $ddate_Y); 
    109109 
    110                 $post_date = gmdate('Y-m-d H:i:s', $ddate_U); 
     110                $post_date = gmdate('Y-m-d H:i:s', $ddate_U + ($time_difference * 3600)); 
     111                $post_date_gmt = gmdate('Y-m-d H:i:s', $ddate_U); 
    111112            } 
    112113        } 
     
    227228                $content = addslashes(trim($content)); 
    228229                if($flat > 500) { 
    229                     $sql = "INSERT INTO $tableposts (post_author, post_date, post_content, post_title, post_category) VALUES ($post_author, '$post_date', '$content', '$post_title', $post_category)"; 
     230                    $sql = "INSERT INTO $tableposts (post_author, post_date, post_date_gmt, post_content, post_title, post_category) VALUES ($post_author, '$post_date', '$post_date_gmt', '$content', '$post_title', $post_category)"; 
    230231                } else { 
    231                     $sql = "INSERT INTO $tableposts (post_author, post_date, post_content, post_title, post_category, post_lat, post_lon) VALUES ($post_author, '$post_date', '$content', '$post_title', $post_category, $flat, $flon)"; 
     232                    $sql = "INSERT INTO $tableposts (post_author, post_date, post_date_gmt, post_content, post_title, post_category, post_lat, post_lon) VALUES ($post_author, '$post_date', '$post_date_gmt', '$content', '$post_title', $post_category, $flat, $flon)"; 
    232233                } 
    233234                $result = $wpdb->query($sql);