[buddypress-trac] [BuddyPress] #4573: bp-activity is off by 5 Hours
buddypress-trac
noreply at wordpress.org
Mon Mar 11 01:17:16 UTC 2013
#4573: bp-activity is off by 5 Hours
------------------------------------+-----------------------------
Reporter: mgkoller | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Future Release
Component: Activity | Version: 1.6.1
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+-----------------------------
Comment (by shanebp):
Replying to [comment:12 boonebgorges]:
> Thanks for the patch. Two things:
>
> - Before applying a fix to this one location, we need to do a thorough
sweep to figure out why problems are arising here but not elsewhere.
Where else is the time explicitly stated, as opposed to '...days ago' ?
> - WP has a more thorough function `get_date_from_gmt()` that might be
better to use
I used the 'current_time' function because it always gets the local
timezone, if set.
But `get_date_from_gmt()` relies on 'gmt_offset' which, don't know why, is
often empty re the option value. Clue ?
Maybe 'bp_format_time()' in bp-core-template.php should use 'current_time'
instead of 'gmt_offset' ?
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4573#comment:13>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list