Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#891 closed defect (bug) (fixed)

wrong date used in wp-rss2.php

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


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 (5)

#1 @face
16 years ago

  • Patch set to No

#3 @jesse
16 years ago

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() ?>

#4 @ryan
16 years ago

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

#5 @ryan
16 years ago

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