Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity Time Stamp Saying [Use GMT Timezone] ago

  • @bbrian017

    Participant

    What’s going on here why is this happening?

    Activity Time Stamp Saying [Use GMT Timezone] ago

Viewing 17 replies - 1 through 17 (of 17 total)
  • @djpaul

    Keymaster

    No idea but this is something I’d love to know.

    @mikepratt

    Participant

    I fixed my same issue this way: Went into General Settings and chose a manual UTC offset timezone, instead of my city. All is right in the universe now

    @bbrian017

    Participant

    I don’t understand. You set the time to plus rather than negative?

    Did it auto fix the existing posts or everything there after?

    Thanks so much for this.

    @21cdb

    Participant

    On my install every fresh update is saying “6:00 hours ago”, but it should be “0 seconds”. I tried to set a manual UTC offset timezone (-6:00) and posted again, but its still is saying “6:00 hours ago”?

    @bbrian017

    Participant

    This is so annoying it’s making us look bad!

    The same three blog things have been on my main site for 5 hours.

    Everything new just drops below it.

    Perhaps I have a different issue please look

    http://EXAMPLE.com/club/

    @bbrian017

    Participant

    Just an update one of the three story’s has started moving down but two still remain up top no matter what activity is done. It’s like they are stuck.

    Did anyone have a chance to look?

    @bbrian017

    Participant

    Third update, the second article has now started moving down ward. One article still remains un changed and at the top of all activities.

    Perhaps this will just “go away” haha

    P.S can some one please remove my website url please please!

    @djpaul

    Keymaster

    URL edited as per your request

    @bbrian017

    Participant

    This is still happening to all blog posts can anyone help me out?

    [Use GMT Timezone] ago

    Issue after issue so far right from a fresh installation!

    @bbrian017

    Participant

    I seriously need help with this it’s still happening

    Anyone?

    @jivany

    Participant

    DJ Paul mentioned in Member Widget timezone issue that he has the problem when using bp_core_time_since().

    Prior to changeset 2128 (November 25) this function would return the exact string “[Use GMT Timezone]” if the since time was less than 0. That is, the difference between the current time and the previous time was 0 or even negative!

    In chageset 2128 (November 25) on the trunk, this string has been replaced by “sometime” which will be a little more graceful. Unfortunately that means it’s not going to be fixed until 1.2 is released.

    As for why this is happening, it looks like bp_core_time_since() is getting called like this a lot:

    bp_core_time_since( time() );

    Which results in the code doing a calculation of:

    time() - time()

    which is almost guaranteed to be equal to 0.

    @bbrian017

    Participant

    So what about a fix?

    Nothing until the date you mentioned?

    Is this causing my activity to mess up as mentioned here?

    https://buddypress.org/forums/topic/activity-stream-not-working

    @jivany

    Participant

    Like I said, there’s a solution in 1.2.

    @bbrian017

    Participant

    Do we have a time line for 1.2

    Also is this what is making the blog stories stay at the top of the activity stream?

    @jivany

    Participant

    If you check the roadmap you can see that 1.2 is unfortunately running a little behind schedule. Given some of the changes that are happening, I think a lot of us are more than willing to wait.

    As for your issue, you could go and manually change the string in bp_core_time_since() to display something more appropriate than the GMT string. This would at least temporarily address the cosmetic issue until 1.2 is available.

    As for the activity stream stuff, that’s rather curious. To me it suggests that there is some sort of problem sorting the activities based on their dates. When you look at the blog entries directly (not in the activity stream), do they have valid dates?

    @bbrian017

    Participant

    Well from what I can tell the date stamps are fine.

    I really have no clue why it’s happening but it’s really affecting the quality of my website

    Anyone with a fix or suggestion it would be greatly appreciated

    Thanks,

    brian

    @melech-mizrahi

    Participant

    Fix:

    1. Open up bp-core.php

    2. Find Function bp_core_time_since( $older_date, $newer_date = false )

    3. Locate $since = $newer_date – $older_date;

    4. Change the above to $since = ($newer_date – $older_date) – $off_time;

    5. Substitute $off_time (used as a reference in the steps) to the amount of seconds your site is off by. For instance my site was off by 5 hours, so I used 18000 (60 * 60 * 5). My result is $since = ($newer_date – $older_date) – 18000;

    6. Upload changed to your website.

    7. Fixed

    After a bit of looking around I noticed that the Status time had been correct…and hence subtracting time led to the [Use GMT Timezeone] to pop up for the status time.

    Here’s the fix for this.

    1. Find the if statement if ( 0 > $since )

    2. Comment out return __( ‘[Use GMT Timezone]’, ‘buddypress’ );

    3. Add $since = $newer_date – $older_date; inside the if (above the line you just commented out)

    4. Upload changes

    5. Fixed

Viewing 17 replies - 1 through 17 (of 17 total)
  • The topic ‘Activity Time Stamp Saying [Use GMT Timezone] ago’ is closed to new replies.
Skip to toolbar