[buddypress-trac] [BuddyPress] #4365: bp_format_time() fails for datebox retrieved by bp_get_member_profile_data()

buddypress-trac noreply at wordpress.org
Tue Apr 16 00:34:13 UTC 2013


#4365: bp_format_time() fails for datebox retrieved by
bp_get_member_profile_data()
--------------------------+-----------------------------
 Reporter:  wbajzek       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  XProfile      |     Version:  1.5.6
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+-----------------------------

Comment (by shanebp):

 Even if it didn't fail the is_numeric check, there would be this problem
 for xprofile_get_field_data()

 bp_format_time() defaults to  $localize_time = true

 {{{
 function bp_format_time( $time, $just_date = false, $localize_time = true
 )
 }}}


 Which you don't want on a profile datebox value.

 But in function xprofile_format_profile_field, $localize_time is not set
 to false.

 {{{
    if ( 'datebox' == $field_type ) {
          $field_value = bp_format_time( $field_value, true );
 }}}


 Can't figure out why this time issue doesn't appear on profile pages.
 I suspect it's something in $members_template

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4365#comment:3>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list