[buddypress-trac] [BuddyPress] #2203: GMT offset bug for date_sent in bp-messages-classes.php [Has Patch]

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu Apr 15 19:33:42 UTC 2010

#2203: GMT offset bug for date_sent in bp-messages-classes.php [Has Patch]
 Reporter:  rnaegle   |       Owner:  rnaegle                
     Type:  defect    |      Status:  assigned               
 Priority:  normal    |   Milestone:  1.3                    
Component:  Activity  |    Keywords:  has-patch needs-testing

Comment(by rnaegle):

 I've made the changes based on 2203.001.diff--the patch fixes incorrect
 times expressed in relative terms (based on bp_core_time_since). I've
 noticed that messages displayed with explicit date and time don't get
 converted from GMT to local time.

 For example, suppose I send a message to another user today a 23:00 GMT.
 When viewing the thread 5 minutes later, the relative time will display
 "Sent 5 minutes ago." However, when viewing the list of all messages sent
 the time sent will be displayed as "April 15, 2010 at 11:00 pm" instead of
 displaying the time relative to my current timezone.

 My GMT offset is configured for both PHP and WPMU. When experimenting with
 bp-messages-templatetags.php I noticed that date_default_timezone_get()
 returns "UTC" instead of the correct timezone. I have bbPress installed
 via BuddyPress

Ticket URL: <http://trac.buddypress.org/ticket/2203#comment:7>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list