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

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Mar 16 21:29:52 UTC 2010


#2203: GMT offset bug for date_sent in bp-messages-classes.php
----------------------+-----------------------------------------------------
 Reporter:  rnaegle   |       Owner:                         
     Type:  defect    |      Status:  new                    
 Priority:  trivial   |   Milestone:                         
Component:  Activity  |    Keywords:  messages, timezone, GMT
----------------------+-----------------------------------------------------
 I found that newly created messages were being displayed as if they had
 been sent at an incorrect time relative to my system timezone. In my case
 the local timezone is EDT; messages that were just sent appeared to have
 been sent 4 hours ago.

 The problem persists after updating to 1.2.2.1

 It appears the culprit was the MySQL function FROM_UNIXTIME returns a
 timestamp relative to the system timezone, but bp_core_time_since expects
 a timestamp relative to GMT.

 Attached is a patch that works on my instance of BuddyPress.

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


More information about the buddypress-trac mailing list