Changeset 2366

Show
Ignore:
Timestamp:
02/21/05 04:19:43 (4 years ago)
Author:
ryan
Message:

Do not translate dates in feeds. http://mosquito.wordpress.org/view.php?id=924. Reviewed by morganiq.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-atom.php

    r2321 r2366  
    2121    <link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" /> 
    2222    <tagline><?php bloginfo_rss("description") ?></tagline> 
    23     <modified><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT')); ?></modified> 
    24     <copyright>Copyright <?php echo mysql2date('Y', get_lastpostdate('blog')); ?></copyright> 
     23    <modified><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></modified> 
     24    <copyright>Copyright <?php echo mysql2date('Y', get_lastpostdate('blog'), 0); ?></copyright> 
    2525    <generator url="http://wordpress.org/" version="<?php bloginfo_rss('version'); ?>">WordPress</generator> 
    2626     
  • trunk/wp-includes/functions.php

    r2365 r2366  
    1616} 
    1717 
    18 function mysql2date($dateformatstring, $mysqlstring, $use_b2configmonthsdays = 1) { 
     18function mysql2date($dateformatstring, $mysqlstring, $translate = true) { 
    1919    global $month, $weekday, $month_abbrev, $weekday_abbrev; 
    2020    $m = $mysqlstring; 
     
    2323    } 
    2424    $i = mktime(substr($m,11,2),substr($m,14,2),substr($m,17,2),substr($m,5,2),substr($m,8,2),substr($m,0,4));  
    25     if (!empty($month) && !empty($weekday) && $use_b2configmonthsdays) { 
     25    if (!empty($month) && !empty($weekday) && $translate) { 
    2626        $datemonth = $month[date('m', $i)]; 
    2727        $datemonth_abbrev = $month_abbrev[$datemonth]; 
  • trunk/wp-rdf.php

    r2272 r2366  
    2626    <link><?php bloginfo_rss('url') ?></link> 
    2727    <description><?php bloginfo_rss('description') ?></description> 
    28     <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT')); ?></dc:date> 
     28    <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></dc:date> 
    2929    <admin:generatorAgent rdf:resource="http://wordpress.org/?v=<?php echo $wp_version ?>"/> 
    3030    <sy:updatePeriod>hourly</sy:updatePeriod> 
     
    4343    <title><?php the_title_rss() ?></title> 
    4444    <link><?php permalink_single_rss() ?></link> 
    45     <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt); ?></dc:date> 
     45    <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt, false); ?></dc:date> 
    4646    <dc:creator><?php the_author() ?></dc:creator> 
    4747    <?php the_category_rss('rdf') ?> 
  • trunk/wp-rss.php

    r2318 r2366  
    1919    <link><?php bloginfo_rss('url') ?></link> 
    2020    <description><?php bloginfo_rss('description') ?></description> 
    21     <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), 0); ?></lastBuildDate> 
     21    <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate> 
    2222    <docs>http://backend.userland.com/rss092</docs> 
    2323    <language><?php echo get_option('rss_language'); ?></language> 
  • trunk/wp-rss2.php

    r2318 r2366  
    2525    <link><?php bloginfo_rss('url') ?></link> 
    2626    <description><?php bloginfo_rss("description") ?></description> 
    27     <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), 0); ?></pubDate> 
     27    <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></pubDate> 
    2828    <generator>http://wordpress.org/?v=<?php bloginfo_rss('version'); ?></generator> 
    2929    <language><?php echo get_option('rss_language'); ?></language> 
     
    3434        <link><?php permalink_single_rss() ?></link> 
    3535        <comments><?php comments_link(); ?></comments> 
    36         <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_the_time('Y-m-d H:i:s')); ?></pubDate> 
     36        <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_the_time('Y-m-d H:i:s'), false); ?></pubDate> 
    3737        <dc:creator><?php the_author() ?></dc:creator> 
    3838        <?php the_category_rss() ?>