Skip to:
Content

bbPress.org

Opened 10 years ago

Closed 10 years ago

#2697 closed defect (bug) (fixed)

bbp_get_topic_post_date() returning wrong time

Reported by: tobyhawkins's profile tobyhawkins Owned by: netweb's profile netweb
Milestone: 2.6 Priority: normal
Severity: normal Version: 2.5.4
Component: Component - Topics Keywords: needs-patch
Cc:

Description

I was having a problem with "time since" displaying "sometime ago" and it seems that line 800 in bbpress/includes/topics/template.php has G and U back to front.

I think it should be

$gmt_s = !empty( $gmt ) ? 'G' : 'U';

This is what it is in the equivalent file for replies.

Change History (2)

#1 @netweb
10 years ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 2.6

Thanks Toby, moving into 2.6 to investigate further but should be a quick fix.

#2 @netweb
10 years ago

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

In 5811:

Topics: Fix bbp_get_topic_post_date() default GMT date format copy pasta introduced in r4647, includes unit tests.

Props tobyhawkins. Fixes #2697

Note: See TracTickets for help on using tickets.