Ticket #891 (closed defect (bug): fixed)

Opened 7 years ago

Last modified 7 years ago

wrong date used in wp-rss2.php

Reported by: face Owned by: ryan
Priority: normal Milestone:
Component: General Version: 1.5
Severity: major Keywords:
Cc: tuxp3

Description

the pubDate RSS item contains a date specified to be in GMT, but the date inserted is not the GMT date of the post

get_the_time function needs to be "fixed" to add a GMT parameter

Change History

comment:1   face7 years ago

  • Patch set to No

Maybe we should use get_post_time($timestr, true) instead of get_the_time($timestr)?

--- wp-rss2.php (revision 85) +++ wp-rss2.php (working copy) @@ -33,7 +33,7 @@

<title><?php the_title_rss() ?></title> <link><?php permalink_single_rss() ?></link> <comments><?php comments_link(); ?></comments>

  • <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_the_time('Y-m-d H:i:s'), false); ?></pubDate>

+ <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate>

<dc:creator><?php the_author() ?></dc:creator> <?php the_category_rss() ?>

comment:4   ryan7 years ago

  • Owner changed from anonymous to rboren
  • Status changed from new to assigned

comment:5   ryan7 years ago

  • Status changed from assigned to closed
  • fixed_in_version set to 1.5.1
  • Resolution changed from 10 to 20
Note: See TracTickets for help on using tickets.