Make WordPress Core

Changeset 1004


Ignore:
Timestamp:
03/25/2004 02:45:32 AM (20 years ago)
Author:
michelvaldrighi
Message:

now storing emailed posts as localtime+gmt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.