Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity Time Stamp Saying [Use GMT Timezone] ago

  • Avatar of Bbrian017
    bbrian017
    Participant

    @bbrian017

    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)
  • No idea but this is something I’d love to know.

    Avatar of Mike Pratt
    Mike Pratt
    Participant

    @mikepratt

    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

    Avatar of Bbrian017
    bbrian017
    Participant

    @bbrian017

    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.

    Avatar of 21cdb
    21cdb
    Participant

    @21cdb

    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”?

    Avatar of Bbrian017
    bbrian017
    Participant

    @bbrian017

    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/

    Avatar of Bbrian017
    bbrian017
    Participant

    @bbrian017

    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?

    Avatar of Bbrian017
    bbrian017
    Participant

    @bbrian017

    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!

    URL edited as per your request

    Avatar of Bbrian017
    bbrian017
    Participant

    @bbrian017

    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!

    Avatar of Bbrian017
    bbrian017
    Participant

    @bbrian017

    I seriously need help with this it’s still happening

    Anyone?

    Avatar of jivany
    jivany
    Participant

    @jivany

    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.

    Avatar of Bbrian017
    bbrian017
    Participant

    @bbrian017

    So what about a fix?

    Nothing until the date you mentioned?

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

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

    Avatar of jivany
    jivany
    Participant

    @jivany

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

    Avatar of Bbrian017
    bbrian017
    Participant

    @bbrian017

    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?

    Avatar of jivany
    jivany
    Participant

    @jivany

    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?

    Avatar of Bbrian017
    bbrian017
    Participant

    @bbrian017

    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

    Avatar of melech-mizrahi
    Melech Mizrahi
    Participant

    @melech-mizrahi

    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)

You must be logged in to reply to this topic.