Opened 11 months ago

Last modified 11 months ago

#4340 new enhancement

Outputting timezone-correct timestamp for activity is hard

Reported by: ericlewis Owned by:
Priority: normal Milestone: Future Release
Component: Activity Version: 1.6-beta
Severity: normal Keywords: 2nd-opinion dev-feedback
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 11 months ago.
just a thought.

Download all attachments as: .zip

Change History (2)

just a thought.

  • Milestone changed from Awaiting Review to Future Release

This is a good idea.

Note: See TracTickets for help on using tickets.