Make WordPress Core

Changeset 1040


Ignore:
Timestamp:
03/31/2004 04:44:02 PM (20 years ago)
Author:
michelvaldrighi
Message:

fixed dates to use GMT, content-type to be application/rss.xml

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-rdf.php

    r1022 r1040  
    66}
    77
    8 header('Content-type: application/rdf+xml', true);
     8header('Content-type: application/rss+xml', true);
    99
    1010/* This doesn't take into account edits
     
    3939    <description><?php bloginfo_rss('description') ?></description>
    4040    <dc:language><?php echo get_settings('rss_language'); ?></dc:language>
    41     <dc:date><?php echo gmdate('Y-m-d\TH:i:s'); ?></dc:date>
     41    <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT')); ?></dc:date>
    4242    <dc:creator><?php echo antispambot(get_settings('admin_email')) ?></dc:creator>
    4343    <admin:generatorAgent rdf:resource="http://wordpress.org/?v=<?php echo $wp_version ?>"/>
     
    5858    <title><?php the_title_rss() ?></title>
    5959    <link><?php permalink_single_rss() ?></link>
    60     <dc:date><?php the_time('Y-m-d\TH:i:s'); ?></dc:date>
     60    <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt); ?></dc:date>
    6161    <dc:creator><?php the_author() ?> (mailto:<?php the_author_email() ?>)</dc:creator>
    6262    <?php the_category_rss('rdf') ?>
Note: See TracChangeset for help on using the changeset viewer.