[buddypress-trac] [BuddyPress] #4310: Members Profile Shows "active sometime ago"

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Jul 10 14:54:03 UTC 2012


#4310: Members Profile Shows "active sometime ago"
-------------------------------------------+------------------------------
 Reporter:  frank13                        |       Owner:
     Type:  defect (bug)                   |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Core                           |     Version:  1.5.6
 Severity:  normal                         |  Resolution:
 Keywords:  needs-patch reporter-feedback  |
-------------------------------------------+------------------------------

Comment (by frank13):

 Replying to [comment:7 boonebgorges]:
 > > How do I get bp_core_current_time() to know that the clock time is 4
 hours earlier than it thinks it is?
 >
 > That's easy - there is a filter `'bp_core_current_time'` that you can
 use to change its output to whatever you want.
 >
 > A more important question is why `bp_core_current_time()` is returning
 the wrong time to begin with. What time zone are you in? Is
 `current_time()` (wp-includes/functions.php) working correctly for you? If
 `gmdate()` is returning an incorrect time, then you might have a PHP
 configuration issue.


 We are in Time Zone "EST", "New York", "GMT-5"
 WordPress Settings:
 Timezone New York       UTC time is 2012-07-10 14:43:28 Local time is
 2012-07-10 10:43:28
 Choose a city in the same timezone as you.
 This timezone is currently in daylight saving time.

 PHP Settings:
 date/time support       enabled
 "Olson" Timezone Database Version       2009.13
 Timezone Database       internal
 Default timezone        US/Eastern


 current_time() returns nothing [from within the bp-core-functions.php
 script]


 gmdate('m/d/y g:i:s a') = 07/10/12 2:51:38 pm [that's not right]


 Finally, it can't be a PHP settings issue because the server I have WP/BP
 installed on has been running for years and we have thousands of PHP apps
 running on it. never had a date-time issue with any of them.

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


More information about the buddypress-trac mailing list