[buddypress-trac] [BuddyPress] #3522: Fix timezone != GMT creates wrong "posted xyz ago" dates

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon Aug 29 03:04:41 UTC 2011

#3522: Fix timezone != GMT creates wrong "posted xyz ago" dates
 Reporter:  sboisvert  |      Owner:
     Type:  defect     |     Status:  new
 Priority:  normal     |  Milestone:  Awaiting Review
Component:  Core       |    Version:
 Severity:  normal     |   Keywords:
 Our server being on Eastern Time, we had all posts off by 4h.
 The problem was that Buddypress has all internal times in GMT, but at one
 point uses strtotime which will convert the time to the date.timezone
 setting (actually whatever http://www.php.net/manual/en/function.date-
 default-timezone-get.php returns).

 This patch adds the timezone offset of the same timezone used by strtotime
 to the calculations.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3522>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list