[buddypress-trac] [BuddyPress] #4365: bp_format_time() fails for datebox retrieved by bp_get_member_profile_data()
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Thu Jul 19 17:04:29 UTC 2012
#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: Awaiting Review
Component: XProfile | Version: 1.5.6
Severity: normal | Keywords:
--------------------------+-----------------------------
1. Create a datebox profile field
2. Set it for some user
3. In the members loop, attempt to retrieve that field with
bp_get_member_profile_data()
Result: blank
It looks like BuddyPress stores the output of the datebox as a string like
"2012-07-19 00:00:00". bp_get_member_profile_data() retrieves that from
the database and then passes it to xprofile_format_profile_field(), which
passes it to bp_format_time(), which returns false because the value fails
the is_numeric() check.
Either bp_format_time() needs to be fixed to handle the datebox output, or
the datebox needs to be fixed so it stores time in the format that
bp_format_time() expects.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4365>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list