Changeset 1004
- Timestamp:
- 03/25/2004 02:45:32 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-mail.php
r957 r1004 108 108 $ddate_U = mktime($ddate_H, $ddate_i, $ddate_s, $ddate_m, $ddate_d, $ddate_Y); 109 109 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); 111 112 } 112 113 } … … 227 228 $content = addslashes(trim($content)); 228 229 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)"; 230 231 } 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)"; 232 233 } 233 234 $result = $wpdb->query($sql);
Note: See TracChangeset
for help on using the changeset viewer.