WordPress.org

Make WordPress Core

Changeset 11323 for trunk/xmlrpc.php


Ignore:
Timestamp:
05/14/2009 02:00:32 AM (11 years ago)
Author:
ryan
Message:

Don't localize dates where not appropriate. Props Denis-de-Bernardy, hakre. fixes #9730

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc.php

    r11190 r11323  
    524524
    525525            // Format page date.
    526             $page_date = mysql2date("Ymd\TH:i:s", $page->post_date);
    527             $page_date_gmt = mysql2date("Ymd\TH:i:s", $page->post_date_gmt);
     526            $page_date = mysql2date("Ymd\TH:i:s", $page->post_date, false);
     527            $page_date_gmt = mysql2date("Ymd\TH:i:s", $page->post_date_gmt, false);
    528528
    529529            // Pull the categories info together.
     
    800800        $num_pages = count($page_list);
    801801        for($i = 0; $i < $num_pages; $i++) {
    802             $post_date = mysql2date("Ymd\TH:i:s", $page_list[$i]->post_date);
    803             $post_date_gmt = mysql2date("Ymd\TH:i:s", $page_list[$i]->post_date_gmt);
     802            $post_date = mysql2date("Ymd\TH:i:s", $page_list[$i]->post_date, false);
     803            $post_date_gmt = mysql2date("Ymd\TH:i:s", $page_list[$i]->post_date_gmt, false);
    804804
    805805            $page_list[$i]->dateCreated = new IXR_Date($post_date);
     
    10481048
    10491049        // Format page date.
    1050         $comment_date = mysql2date("Ymd\TH:i:s", $comment->comment_date);
    1051         $comment_date_gmt = mysql2date("Ymd\TH:i:s", $comment->comment_date_gmt);
     1050        $comment_date = mysql2date("Ymd\TH:i:s", $comment->comment_date, false);
     1051        $comment_date_gmt = mysql2date("Ymd\TH:i:s", $comment->comment_date_gmt, false);
    10521052
    10531053        if ( 0 == $comment->comment_approved )
     
    16801680        $struct = array(
    16811681            'userid'    => $post_data['post_author'],
    1682             'dateCreated' => new IXR_Date(mysql2date('Ymd\TH:i:s', $post_data['post_date'])),
     1682            'dateCreated' => new IXR_Date(mysql2date('Ymd\TH:i:s', $post_data['post_date'], false)),
    16831683            'content'     => $content,
    16841684            'postid'  => $post_data['ID']
     
    17221722                continue;
    17231723
    1724             $post_date = mysql2date('Ymd\TH:i:s', $entry['post_date']);
     1724            $post_date = mysql2date('Ymd\TH:i:s', $entry['post_date'], false);
    17251725            $categories = implode(',', wp_get_post_categories($entry['ID']));
    17261726
     
    25722572
    25732573        if ($postdata['post_date'] != '') {
    2574             $post_date = mysql2date('Ymd\TH:i:s', $postdata['post_date']);
    2575             $post_date_gmt = mysql2date('Ymd\TH:i:s', $postdata['post_date_gmt']);
     2574            $post_date = mysql2date('Ymd\TH:i:s', $postdata['post_date'], false);
     2575            $post_date_gmt = mysql2date('Ymd\TH:i:s', $postdata['post_date_gmt'], false);
    25762576
    25772577            $categories = array();
     
    26882688                continue;
    26892689
    2690             $post_date = mysql2date('Ymd\TH:i:s', $entry['post_date']);
    2691             $post_date_gmt = mysql2date('Ymd\TH:i:s', $entry['post_date_gmt']);
     2690            $post_date = mysql2date('Ymd\TH:i:s', $entry['post_date'], false);
     2691            $post_date_gmt = mysql2date('Ymd\TH:i:s', $entry['post_date_gmt'], false);
    26922692
    26932693            $categories = array();
     
    29232923                continue;
    29242924
    2925             $post_date = mysql2date('Ymd\TH:i:s', $entry['post_date']);
    2926             $post_date_gmt = mysql2date('Ymd\TH:i:s', $entry['post_date_gmt']);
     2925            $post_date = mysql2date('Ymd\TH:i:s', $entry['post_date'], false);
     2926            $post_date_gmt = mysql2date('Ymd\TH:i:s', $entry['post_date_gmt'], false);
    29272927
    29282928            $struct[] = array(
Note: See TracChangeset for help on using the changeset viewer.