Ticket #891 (closed defect (bug): fixed)
wrong date used in wp-rss2.php
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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:2
anonymousbugger — 7 years ago
see: #0000924
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() ?>
- Owner changed from anonymous to rboren
- Status changed from new to assigned
- Status changed from assigned to closed
- fixed_in_version set to 1.5.1
- Resolution changed from 10 to 20
