Skip to:
Content

BuddyPress.org

Opened 13 years ago

Closed 8 years ago

Last modified 8 years ago

#4340 closed enhancement (fixed)

Outputting timezone-correct timestamp for activity is hard

Reported by: ericlewis's profile ericlewis Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.6
Component: Activity Keywords:
Cc:

Description

When displaying the date an activity update was created, bp-default outputs the time elapsed since the activity was created. However, if a theme wants to display that in a timestamp, it will have to do some tricker of its own to print out a properly formatted timestamp that is respective of the timezone set in WP settings.

I think a template function may serve well here, something like get_activity_timestamp(), which would return the timezone-correct timestamp.

Attachments (1)

4340.diff (1011 bytes) - added by ericlewis 13 years ago.
just a thought.

Download all attachments as: .zip

Change History (8)

@ericlewis
13 years ago

just a thought.

#1 @boonebgorges
13 years ago

  • Milestone changed from Awaiting Review to Future Release

This is a good idea.

#2 @johnjamesjacoby
10 years ago

  • Version changed from 1.6-beta to 1.6

#3 @DJPaul
8 years ago

  • Keywords needs-patch good-first-bug added; 2nd-opinion dev-feedback removed

Yes. Root "issue" is we store time/dates in UTC in the database. Not sure best way; could change existing bp_get_activity_date_recorded but that will break places like in bp-legacy/buddypress/assets/embeds/header-activity.php.

#5 @slaFFik
8 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in #5757

#6 @slaFFik
8 years ago

  • Milestone Future Release deleted

#7 @slaFFik
8 years ago

  • Keywords needs-patch good-first-bug removed
Note: See TracTickets for help on using tickets.