[Bb-trac] Re: [bbPress] #695: user definable long date format option

bbPress bb-trac at lists.bbpress.org
Fri Dec 14 20:46:56 GMT 2007


#695: user definable long date format option
-------------------------+--------------------------------------------------
 Reporter:  _ck_         |        Owner:               
     Type:  enhancement  |       Status:  new          
 Priority:  normal       |    Milestone:  0.8.4 & Pings
Component:  Back-end     |      Version:  0.8.2.1      
 Severity:  normal       |   Resolution:               
 Keywords:  has-patch    |  
-------------------------+--------------------------------------------------
Changes (by livibetter):

  * keywords:  => has-patch

Comment:

 I made a patch. not sure is that a acceptable solution.

 Add three options `datetime_format`, `date_format` and `time_format`. (all
 have fail-back default values by using `bb_datetime_format_i18n`)

 Add a new function `bb_datetime_format_i18n` to `bb-includes/locale.php`.
 This function generates date/time in local time (GMT + `gmt_offset`
 option).

 "Registered" in user list of admin interface is local time.
 "Member Since" in profile page uses `date_format`
 Time in search result of Kakumei template uses `datetime_format`

-- 
Ticket URL: <http://trac.bbpress.org/ticket/695#comment:5>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list