Skip to:
Content

BuddyPress.org

Ticket #845: 845.patch

File 845.patch, 1.2 KB (added by GIGALinux, 16 years ago)
  • bp-core.php

     
    900900 * @return str The email for the matched user.
    901901 */
    902902function bp_core_format_time( $time, $just_date = false ) {
    903         $date = date( "F j, Y ", $time );
     903        $date = date_i18n( 'F j, Y', $time ) . ' ';
    904904       
    905905        if ( !$just_date ) {
    906                 $date .= __('at', 'buddypress') . date( ' g:iA', $time );
     906                $date .= __( 'at', 'buddypress' ) . '' . date_i18n( __( 'g:iA', 'buddypress' ), $time );
    907907        }
    908908       
    909909        return $date;
  • bp-core/bp-core-templatetags.php

     
    367367}
    368368
    369369function bp_format_time( $time, $just_date = false ) {
    370         $date = date( get_option('date_format'), $time );
     370        $date = date_i18n( get_option('date_format'), $time );
    371371       
    372372        if ( !$just_date ) {
    373                 $date .= ' ' . __( 'at', 'buddypress' ) . date( ' ' . get_option('time_format'), $time );
     373                $date .= ' ' . __( 'at', 'buddypress' ) . date_i18n( ' ' . get_option('time_format'), $time );
    374374        }
    375375       
    376376        return apply_filters( 'bp_format_time', $date );