WordPress.org

Make WordPress Core

Changeset 5514


Ignore:
Timestamp:
05/22/2007 07:58:00 PM (13 years ago)
Author:
markjaquith
Message:

explicitly state Zulu time for desktop editors. Props Erik Barzeski and Joseph Scott. fixes #4314 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/xmlrpc.php

    r5512 r5514  
    209209
    210210            // Format page date.
    211             $page_date = mysql2date("Ymd\TH:i:s", $page->post_date_gmt);
     211            $page_date = mysql2date("Ymd\TH:i:s\Z", $page->post_date_gmt);
    212212
    213213            // Pull the categories info together.
     
    439439        $num_pages = count($page_list);
    440440        for($i = 0; $i < $num_pages; $i++) {
    441             $post_date = mysql2date("Ymd\TH:i:s", $page_list[$i]->post_date_gmt);
     441            $post_date = mysql2date("Ymd\TH:i:s\Z", $page_list[$i]->post_date_gmt);
    442442            $page_list[$i]->dateCreated = new IXR_Date($post_date);
    443443
     
    12701270      if ($postdata['post_date'] != '') {
    12711271
    1272         $post_date = mysql2date('Ymd\TH:i:s', $postdata['post_date_gmt']);
     1272        $post_date = mysql2date('Ymd\TH:i:s\Z', $postdata['post_date_gmt']);
    12731273
    12741274        $categories = array();
     
    13381338        foreach ($posts_list as $entry) {
    13391339
    1340             $post_date = mysql2date('Ymd\TH:i:s', $entry['post_date_gmt']);
     1340            $post_date = mysql2date('Ymd\TH:i:s\Z', $entry['post_date_gmt']);
    13411341            $categories = array();
    13421342            $catids = wp_get_post_categories($entry['ID']);
     
    15231523        foreach ($posts_list as $entry) {
    15241524
    1525             $post_date = mysql2date('Ymd\TH:i:s', $entry['post_date_gmt']);
     1525            $post_date = mysql2date('Ymd\TH:i:s\Z', $entry['post_date_gmt']);
    15261526
    15271527            $struct[] = array(
Note: See TracChangeset for help on using the changeset viewer.