[buddypress-trac] [BuddyPress Trac] #8083: Add Age option to BP Xprofile Databox

buddypress-trac noreply at wordpress.org
Wed Apr 21 21:37:42 UTC 2021

#8083: Add Age option to BP Xprofile Databox
 Reporter:  Venutius               |       Owner:  (none)
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  8.0.0
Component:  Extended Profile       |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |

Comment (by imath):

 8083.2.patch] I'm moving the part of the `bp_core_time_since()` function
 that calculates the time difference between 2 dates into a new function
 `bp_core_time_diff()` that is also used by the `bp_core_time_old()`
 function. This way we can use `bp_core_time_diff()` to build other ways of
 displaying time difference.

 @shanebp This patch is not about changing how the field type is saving the
 data into the DB. It was and remain a timestamp. It's about displaying
 this timestamp like `20 years old`.

 If you were doing range search thanks to the timestamps, you'll still be
 able to do so 👍

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8083#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list