Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Activity Time Stamp Saying [Use GMT Timezone] ago


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.

Skip to toolbar