[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
Tue Jun 1 01:06:41 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 cnorris23):

 @rnaegle

 > When experimenting with bp-messages-templatetags.php I noticed that
 > date_default_timezone_get() returns "UTC" instead of the correct
 timezone.

 date_default_timezone_get() returns UTC because WP now explicitly sets the
 TZ to UTC for those using PHP 5.1+. This was to fix a problem that was
 partly experienced in this ticket. You can read more about the change here
 (http://wpdevel.wordpress.com/2010/05/29/plugins-using-dateu-or-time-
 may/). Dates are still converted to the TZ set in your WP options when
 needed.

 I've updated the patch to fix the "time sent" display when viewing your
 message list. Could you please test?

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


More information about the buddypress-trac mailing list