Ticket #4314: xmlrpc.php-dif

File xmlrpc.php-dif, 1.7 kB (added by josephscott, 1 year ago)
Line 
1 Index: xmlrpc.php
2 ===================================================================
3 --- xmlrpc.php  (revision 5510)
4 +++ xmlrpc.php  (working copy)
5 @@ -208,7 +208,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_gmt);
10 +                       $page_date = mysql2date("Ymd\TH:i:s\Z", $page->post_date_gmt);
11  
12                         // Pull the categories info together.
13                         $categories = array();
14 @@ -438,7 +438,7 @@
15                 // The date needs to be formated properly.
16                 $num_pages = count($page_list);
17                 for($i = 0; $i < $num_pages; $i++) {
18 -                       $post_date = mysql2date("Ymd\TH:i:s", $page_list[$i]->post_date_gmt);
19 +                       $post_date = mysql2date("Ymd\TH:i:s\Z", $page_list[$i]->post_date_gmt);
20                         $page_list[$i]->dateCreated = new IXR_Date($post_date);
21  
22                         unset($page_list[$i]->post_date_gmt);
23 @@ -1269,7 +1269,7 @@
24  
25           if ($postdata['post_date'] != '') {
26  
27 -           $post_date = mysql2date('Ymd\TH:i:s', $postdata['post_date_gmt']);
28 +           $post_date = mysql2date('Ymd\TH:i:s\Z', $postdata['post_date_gmt']);
29  
30             $categories = array();
31             $catids = wp_get_post_categories($post_ID);
32 @@ -1337,7 +1337,7 @@
33  
34                 foreach ($posts_list as $entry) {
35  
36 -                       $post_date = mysql2date('Ymd\TH:i:s', $entry['post_date_gmt']);
37 +                       $post_date = mysql2date('Ymd\TH:i:s\Z', $entry['post_date_gmt']);
38                         $categories = array();
39                         $catids = wp_get_post_categories($entry['ID']);
40                         foreach($catids as $catid) {
41 @@ -1522,7 +1522,7 @@
42  
43                 foreach ($posts_list as $entry) {
44  
45 -                       $post_date = mysql2date('Ymd\TH:i:s', $entry['post_date_gmt']);
46 +                       $post_date = mysql2date('Ymd\TH:i:s\Z', $entry['post_date_gmt']);
47  
48                         $struct[] = array(
49                                 'dateCreated' => new IXR_Date($post_date),