#695 closed enhancement (fixed)
user definable long date format option
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 0.9 | Priority: | normal |
| Severity: | normal | Version: | 0.8.2.1 |
| Component: | Back-end | Keywords: | has-patch |
| Cc: |
Description
Not everywhere in the world uses "F j, Y, h:i A" and this is hardcoded into several functions.
Should be user definable, at least in config.php, with a fallback default?
Attachments (1)
Change History (8)
#2
@
19 years ago
Oh my mistake this is actually in the default template(s) for search, not in the bbPress engine itself. It was a late night, sorry.
But yeah, it would be nice to give bbPress an admin definable option that template/plugin authors could access. Probably next to the timezone option?
#3
@
18 years ago
- Milestone set to 0.8.4 & WP-Taxonomy
I think we probably need some kind of options page in the admin for things like this.
We may even, dare I suggest it, want to put all of our options in the DB rather than in config.php.
#4
@
18 years ago
We do need a way to change this somewhere. It's particularly annoying for people from other english speaking countries with different formats for strings like this. I shouldn't have to install a full language file to change "F j, Y, h:i A" to the Australian "jS F Y, h:i A" for example.
#5
@
18 years ago
- Keywords has-patch added
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
Can you point out specific places where the format is hardcoded?
A date format option sounds reasonable. Note, though, that the "standard" format is (or should be) fully internationalized; those that install a language should get the date formatted in a way that's acceptable for that language.