Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 14 years ago

#2713 closed defect (bug) (fixed)

Activity Stream Date uses gmdate() rather than current_time()

Reported by: ethitter's profile ethitter Owned by:
Milestone: 1.5 Priority: normal
Severity: Version: 1.2.6
Component: Activity Keywords: timezone, gmt, date
Cc:

Description

When entries are recorded in the activity stream, they are dated using gmdate() rather than current_time(). As a result, entries left during the last hours of the date that fall within the timezone offset determined by WordPress appear on the following day. For example, if my timezone is set to New York and I leave a comment at 23:00, it will be recorded at 04:00 on the following day (03:00 during DST).

The simplest fix for this problem is to replace gmdate() on line 637 of bp-activity.php with current_time('mysql') so that activity stream entries obey the WordPress timezone adjustment.

Change History (1)

#1 @ethitter
14 years ago

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

See #3142, which introduces bp_core_current_time().

Note: See TracTickets for help on using tickets.