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

git-svn-id: https://develop.svn.wordpress.org/trunk@16566 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2010-11-24 11:53:12 +00:00
parent b1417100ce
commit 0da69e3b32
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>';
}
}