Skip to:
Content

BuddyPress.org

Ticket #2203: omgpizza.patch

File omgpizza.patch, 1.5 KB (added by DJPaul, 15 years ago)
  • bp-core/bp-core-templatetags.php

     
    820820        $root_blog_offset = get_blog_option( BP_ROOT_BLOG, 'gmt_offset' );
    821821
    822822        // Calculate offset time
    823         $time_offest = $time + ( $root_blog_offset * 3600 );
     823        $time_offset = $time + ( $root_blog_offset * 3600 );
    824824
    825825        // Current date (January 1, 2010)
    826         $date = date( 'F j, Y ', $time_offest );
     826        $date = date( 'F j, Y ', $time_offset );
    827827
    828828        // Should we show the time also?
    829829        if ( !$just_date ) {
    830830                // Current time (9:50pm)
    831                 $time = date( ' g:ia', $time_offest );
     831                $time = date( ' g:ia', $time_offset );
    832832
    833833                // Return string formatted with date and time
    834834                $date = sprintf( __( '%1$s at %2$s', 'buddypress' ), $date, $time );
  • bp-messages/bp-messages-templatetags.php

     
    291291        function bp_get_message_thread_last_post_date() {
    292292                global $messages_template;
    293293
    294                 return apply_filters( 'bp_get_message_thread_last_post_date', bp_format_time( get_date_from_gmt( $messages_template->thread->last_message_date, 'U' ) ) );
     294                return apply_filters( 'bp_get_message_thread_last_post_date', bp_format_time( strtotime( $messages_template->thread->last_message_date ) ) );
    295295        }
    296296
    297297function bp_message_thread_avatar() {