Opened 14 years ago
Closed 10 years ago
#2693 closed defect (bug) (fixed)
bp_format_time returns incorrect value when gmt_offset is empty
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Core | Keywords: | needs-patch needs-unit-tests |
Cc: | steve@…, jjj@… |
Description
When the root blog's timezone is set to a Region/City string, WP sets the option timezone_string, and gmt_offset value is empty. Only when the timezone is set to a GMT time does gmt_offset contain a value. This results in incorrect time strings for anything that uses bp_format_time.
Function bp_format_time should be modified to take this into account.
Change History (13)
#2
in reply to:
↑ 1
@
14 years ago
- Resolution set to invalid
- Status changed from new to closed
PHP 5.2.4
This ticket may need to be modified/deleted. The issue is more widespread than in just bp_format_time. I need to do some more investigation. To date, I've had to write 3 filters affecting 3 different date/time reporting functions.
I'll see if I can dig deeper.
Replying to DJPaul:
Can you confirm if you tested this on PHP4 or PHP5?
This ticket was mentioned in Slack in #buddypress by djpaul. View the logs.
10 years ago
#4
@
10 years ago
- Cc jjj@… added
- Keywords needs-patch needs-unit-tests added; gmt_offset timezone_string removed
- Milestone changed from 1.5 to 2.3
- Resolution invalid deleted
- Severity set to normal
- Status changed from closed to reopened
Can you confirm if you tested this on PHP4 or PHP5?