Commit 33c99283 authored by Nigel McNie's avatar Nigel McNie
Browse files

Removed leading zero from days in the strftimedate string. Use this on group pages.

parent 4257af12
......@@ -37,7 +37,7 @@ $id = param_integer('id');
if (!$group = get_record_select('group', 'id = ? AND deleted = 0', array($id), '*, ' . db_format_tsfield('ctime'))) {
throw new GroupNotFoundException("Couldn't find group with id $id");
}
$group->ctime = strftime('%e %B %Y', $group->ctime);
$group->ctime = strftime(get_string('strftimedate'), $group->ctime);
$group->admins = get_column_sql("SELECT member
FROM {group_member}
......
......@@ -27,7 +27,7 @@
defined('INTERNAL') || die();
$string['parentlanguage'] = '';
$string['strftimedate'] = '%%d %%B %%Y';
$string['strftimedate'] = '%%e %%B %%Y';
$string['strftimedateshort'] = '%%d %%B';
$string['strftimedatetime'] = '%%d %%B %%Y, %%l:%%M %%p';
$string['strftimedaydate'] = '%%A, %%d %%B %%Y';
......
......@@ -375,7 +375,7 @@ function get_group_user_search_results($group, $query, $offset, $limit) {
foreach ($results['data'] as &$result) {
$result['name'] = display_name($result);
$result['introduction'] = isset($introductions[$result['id']]) ? $introductions[$result['id']]->title : '';
$result['jointime'] = strftime(get_string('strfdaymonthyearshort'), $result['jointime']);
$result['jointime'] = strftime(get_string('strftimedate'), $result['jointime']);
}
}
return $results;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment