Opened 15 years ago
Closed 15 years ago
#3149 closed enhancement (duplicate)
International Date format for XProfile fields
| Reported by: | dhoppe | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5 |
| Component: | Extended Profile | Version: | 1.5 |
| Severity: | Keywords: | i10n, multilingual, date, format | |
| Cc: |
Description
In the function "bp_format_time" in bp-core/bp-core-templatetags.php (line 826) the format of the dates of the member profiles is hard coded to 'F j, Y '.
$date = date( 'F j, Y ', $time_offset );
If you change this line to
$date = date( _x('F j, Y', 'buddypress'), $time_offset );
the date could be formated within the language file. This would be great! :)
Change History (4)
#1
in reply to: ↑ description
@
15 years ago
#2
@
15 years ago
Really, shouldn't this be inherited from the Date Format at Dashboard > Settings? Then we don't need to worry about translations.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Same problem with the time value in the same function:
Should be changed to:
$time = date( _x('g:ia', 'buddypress'), $time_offset );