Skip to:
Content

bbPress.org

Changeset 2437


Ignore:
Timestamp:
06/03/2010 01:14:17 AM (16 years ago)
Author:
chrishajer
Message:

Honor gmt_offset. Fixes #1280. Props GautamGupta, mr_pelle

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/functions.bb-template.php

    r2436 r2437  
    35503550
    35513551function _bb_time_function_return( $time, $args ) {
    3552     $time = bb_gmtstrtotime( $time );
     3552    $time = !$args['localize'] ? strtotime( $time ) : bb_gmtstrtotime( $time );
    35533553
    35543554    switch ( $format = $args['format'] ) :
     
    35673567    endswitch;
    35683568
    3569     if ( $args['localize'] ) {
    3570         return bb_gmdate_i18n( $format, $time, false );
    3571     } else {
    3572         return gmdate( $format, $time );
    3573     }
     3569    return bb_gmdate_i18n( $format, $time );
    35743570}
    35753571
  • trunk/bb-templates/kakumei/rss2.php

    r2430 r2437  
    2424            <title><?php post_author(); ?> <?php _e( 'on' ); ?> "<?php topic_title( $bb_post->topic_id ); ?>"</title>
    2525            <link><?php post_link(); ?></link>
    26             <pubDate><?php bb_post_time( 'D, d M Y H:i:s +0000', array( 'localize' => false ) ); ?></pubDate>
     26            <pubDate><?php bb_post_time( array( 'format' => 'D, d M Y H:i:s +0000', 'localize' => false ) ); ?></pubDate>
    2727            <dc:creator><?php post_author(); ?></dc:creator>
    2828            <guid isPermaLink="false"><?php post_id(); ?>@<?php bb_uri(); ?></guid>
Note: See TracChangeset for help on using the changeset viewer.