[buddypress-trac] [BuddyPress] #2713: Activity Stream Date uses gmdate() rather than current_time()

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Nov 5 13:49:51 UTC 2010


#2713: Activity Stream Date uses gmdate() rather than current_time()
---------------------------------+------------------------------------------
 Reporter:  ethitter             |       Owner:       
     Type:  defect               |      Status:  new  
 Priority:  normal               |   Milestone:  1.3  
Component:  Activity             |     Version:  1.2.6
 Keywords:  timezone, gmt, date  |  
---------------------------------+------------------------------------------
 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.

-- 
Ticket URL: <https://trac.buddypress.org/ticket/2713>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list