Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
33c99283
Commit
33c99283
authored
Jul 03, 2008
by
Nigel McNie
Browse files
Removed leading zero from days in the strftimedate string. Use this on group pages.
parent
4257af12
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/group/view.php
View file @
33c99283
...
...
@@ -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
}
...
...
htdocs/lang/en.utf8/langconfig.php
View file @
33c99283
...
...
@@ -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'
;
...
...
htdocs/lib/searchlib.php
View file @
33c99283
...
...
@@ -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
(
'strf
daymonthyearshort
'
),
$result
[
'jointime'
]);
$result
[
'jointime'
]
=
strftime
(
get_string
(
'strf
timedate
'
),
$result
[
'jointime'
]);
}
}
return
$results
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment