[Bb-trac] [bbPress] #1092: RSS feed return wrong pubDate format, when is set diffrent locale

bbPress bb-trac at lists.bbpress.org
Tue May 26 07:36:05 GMT 2009


#1092: RSS feed return wrong pubDate format, when is set diffrent locale
-----------------------+----------------------------------------------------
 Reporter:  jupeter    |       Owner:                  
     Type:  defect     |      Status:  new             
 Priority:  normal     |   Milestone:                  
Component:  Front-end  |     Version:  1.0-rc-2 (trunk)
 Severity:  normal     |    Keywords:                  
-----------------------+----------------------------------------------------
 I have polish locale.

 In my RSS, I have date format:
 {{{
 <pubDate>Pon, 25 May 2009 21:51:36 +0000</pubDate>
 }}}

 corrent need to be:
 {{{
 <pubDate>Mon, 25 May 2009 21:51:36 +0000</pubDate>
 }}}

 '''Fix problem:'''

 In file ''bb-templates/kakumei/rss2.php'':
 change line 21 from:
 {{{
 <pubDate><?php bb_post_time('D, d M Y H:i:s +0000'); ?></pubDate>
 }}}
 to:
 {{{
 <pubDate><?php echo gmdate('D, d M Y H:i:s +0000',
 strtotime($bb_post->post_time)); ?></pubDate>
 }}}

-- 
Ticket URL: <http://trac.bbpress.org/ticket/1092>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list