Let SimplePie do more of the date handling for us. Props rmccue.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16566 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-11-24 11:53:12 +00:00
parent dc79a67932
commit 59c95ba48e
1 changed files with 2 additions and 5 deletions

View File

@ -841,13 +841,10 @@ function wp_widget_rss_output( $rss, $args = array() ) {
$date = '';
if ( $show_date ) {
$date = $item->get_date();
$date = $item->get_date( 'U' );
if ( $date ) {
if ( $date_stamp = strtotime( $date ) )
$date = ' <span class="rss-date">' . date_i18n( get_option( 'date_format' ), $date_stamp ) . '</span>';
else
$date = '';
$date = ' <span class="rss-date">' . date_i18n( get_option( 'date_format' ), $date ) . '</span>';
}
}