Ticket #845: 845.patch
File 845.patch, 1.2 KB (added by , 16 years ago) |
---|
-
bp-core.php
900 900 * @return str The email for the matched user. 901 901 */ 902 902 function bp_core_format_time( $time, $just_date = false ) { 903 $date = date ( "F j, Y ", $time );903 $date = date_i18n( 'F j, Y', $time ) . ' '; 904 904 905 905 if ( !$just_date ) { 906 $date .= __( 'at', 'buddypress') . date( ' g:iA', $time );906 $date .= __( 'at', 'buddypress' ) . '' . date_i18n( __( 'g:iA', 'buddypress' ), $time ); 907 907 } 908 908 909 909 return $date; -
bp-core/bp-core-templatetags.php
367 367 } 368 368 369 369 function bp_format_time( $time, $just_date = false ) { 370 $date = date ( get_option('date_format'), $time );370 $date = date_i18n( get_option('date_format'), $time ); 371 371 372 372 if ( !$just_date ) { 373 $date .= ' ' . __( 'at', 'buddypress' ) . date ( ' ' . get_option('time_format'), $time );373 $date .= ' ' . __( 'at', 'buddypress' ) . date_i18n( ' ' . get_option('time_format'), $time ); 374 374 } 375 375 376 376 return apply_filters( 'bp_format_time', $date );