Skip to:

Opened 14 years ago

Closed 13 years ago

#2779 closed defect (bug) (fixed)

xprofile date field displays wrong date in public profile

Reported by: ahjira's profile Ahjira Owned by:
Milestone: 1.5 Priority: normal
Severity: Version: 1.2.6
Component: Extended Profile Keywords: date field


It appears that the 1.2.6 release included a bug with the date field for extended profile information. If you create a date field and then pick a date, say, January 15, it will display as January 14 in the public profile page.

Someone pointed out it has something to do with a date offset function, bp_format_time:

Attachments (1)

2779.001.diff (1.6 KB) - added by cnorris23 13 years ago.

Download all attachments as: .zip

Change History (4)

#1 @dancort
13 years ago

Having the same problem. Any update on this? Thanks a lot!

#2 @cnorris23
13 years ago

The succeeding patch fixes the above issue. I've also cleaned up bp_format_time() to allow it to accept a zero value, which is a valid Unix timestamp. I've also changed the function so that it now obeys the time_format, along with the date_format set in Settings>General. Further explanation of the problem can be found at the link given by Ahjira.

13 years ago

#3 @boonebgorges
13 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Problem confirmed on the trunk. cnorris23, your patch fixes it nicely. Fixed in [3651] (I wrote the commit message wrong so the ticket didn't auto-close)

Note: See TracTickets for help on using tickets.