| 1 |
Index: xmlrpc.php |
|---|
| 2 |
=================================================================== |
|---|
| 3 |
--- xmlrpc.php (revision 5282) |
|---|
| 4 |
+++ xmlrpc.php (working copy) |
|---|
| 5 |
@@ -202,7 +202,7 @@ |
|---|
| 6 |
$allow_pings = ("open" == $page->ping_status) ? 1 : 0; |
|---|
| 7 |
|
|---|
| 8 |
// Format page date. |
|---|
| 9 |
- $page_date = mysql2date("Ymd\TH:i:s", $page->post_date); |
|---|
| 10 |
+ $page_date = mysql2date("Ymd\TH:i:s", $page->post_date_gmt) . "Z"; |
|---|
| 11 |
|
|---|
| 12 |
// Pull the categories info together. |
|---|
| 13 |
$categories = array(); |
|---|
| 14 |
@@ -423,7 +423,7 @@ |
|---|
| 15 |
SELECT ID page_id, |
|---|
| 16 |
post_title page_title, |
|---|
| 17 |
post_parent page_parent_id, |
|---|
| 18 |
- post_date |
|---|
| 19 |
+ post_date_gmt |
|---|
| 20 |
FROM {$wpdb->posts} |
|---|
| 21 |
WHERE post_type = 'page' |
|---|
| 22 |
ORDER BY ID |
|---|
| 23 |
@@ -432,10 +432,10 @@ |
|---|
| 24 |
// The date needs to be formated properly. |
|---|
| 25 |
$num_pages = count($page_list); |
|---|
| 26 |
for($i = 0; $i < $num_pages; $i++) { |
|---|
| 27 |
- $post_date = mysql2date("Ymd\TH:i:s", $page_list[$i]->post_date); |
|---|
| 28 |
+ $post_date = mysql2date("Ymd\TH:i:s", $page_list[$i]->post_date_gmt) . "Z"; |
|---|
| 29 |
$page_list[$i]->dateCreated = new IXR_Date($post_date); |
|---|
| 30 |
|
|---|
| 31 |
- unset($page_list[$i]->post_date); |
|---|
| 32 |
+ unset($page_list[$i]->post_date_gmt); |
|---|
| 33 |
} |
|---|
| 34 |
|
|---|
| 35 |
return($page_list); |
|---|
| 36 |
@@ -1263,7 +1263,7 @@ |
|---|
| 37 |
|
|---|
| 38 |
if ($postdata['post_date'] != '') { |
|---|
| 39 |
|
|---|
| 40 |
- $post_date = mysql2date('Ymd\TH:i:s', $postdata['post_date']); |
|---|
| 41 |
+ $post_date = mysql2date('Ymd\TH:i:s', $postdata['post_date_gmt']) . "Z"; |
|---|
| 42 |
|
|---|
| 43 |
$categories = array(); |
|---|
| 44 |
$catids = wp_get_post_categories($post_ID); |
|---|
| 45 |
@@ -1331,7 +1331,7 @@ |
|---|
| 46 |
|
|---|
| 47 |
foreach ($posts_list as $entry) { |
|---|
| 48 |
|
|---|
| 49 |
- $post_date = mysql2date('Ymd\TH:i:s', $entry['post_date']); |
|---|
| 50 |
+ $post_date = mysql2date('Ymd\TH:i:s', $entry['post_date_gmt']) . "Z"; |
|---|
| 51 |
$categories = array(); |
|---|
| 52 |
$catids = wp_get_post_categories($entry['ID']); |
|---|
| 53 |
foreach($catids as $catid) { |
|---|
| 54 |
@@ -1516,7 +1516,7 @@ |
|---|
| 55 |
|
|---|
| 56 |
foreach ($posts_list as $entry) { |
|---|
| 57 |
|
|---|
| 58 |
- $post_date = mysql2date('Ymd\TH:i:s', $entry['post_date']); |
|---|
| 59 |
+ $post_date = mysql2date('Ymd\TH:i:s', $entry['post_date_gmt']) . "Z"; |
|---|
| 60 |
|
|---|
| 61 |
$struct[] = array( |
|---|
| 62 |
'dateCreated' => new IXR_Date($post_date), |
|---|