Echoing "Submitted on" date
-
I’d like to echo a forum post’s “Submitted on” date, thereby allowing admins to customize post dates and times. Specifically, I’m referring to the timestamp one edits in the WP admin back-end (“Activity” > “Edit” > “Submitted on: … “) and that WP stores as an “activity_update” in the “date_recorded” column of the “bp_activity” table.
I’m able to echo the post time with this string:
date("m/j/y", strtotime($topic_template->post->post_time))… but I can’t seem to echo the date recorded. When I adjust the above string as follows:
date("m/j/y", strtotime($activity_template->activity->date_recorded))… BP/WP outputs 01/1/70 vs. the correct “date recorded.”
I’m running WP 3.5 and BP 1.6.1.
Thanks in advance for whatever suggestions can be provided.
You must be logged in to reply to this topic.