Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WCMS
uw_ct_event
Commits
48f27789
Commit
48f27789
authored
Apr 30, 2019
by
Eric Bremner
Browse files
RT#845900: fixing the month having leading zeros for the mini calendar and filter
parent
f14587d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
uw_ct_event.module
View file @
48f27789
...
...
@@ -1327,7 +1327,7 @@ function uw_ct_event_by_date() {
$selectedyear
=
substr
(
$selectedyear
[
count
(
$selectedyear
)
-
1
],
0
,
4
);
if
(
$key
>
date
(
'Y'
)
-
2
||
$key
==
$selectedyear
)
{
foreach
(
$combine_month
as
$key_month
=>
$record_month
)
{
$months
[]
=
l
(
date
(
'F'
,
mktime
(
0
,
0
,
0
,
$key_month
,
1
)),
'events/archive/'
.
$key
.
'-'
.
$key_month
)
.
' ('
.
$record_month
.
')'
;
$months
[]
=
l
(
date
(
'F'
,
mktime
(
0
,
0
,
0
,
$key_month
,
1
)),
'events/archive/'
.
$key
.
'-'
.
str_pad
(
$key_month
,
2
,
'0'
,
STR_PAD_LEFT
)
)
.
' ('
.
$record_month
.
')'
;
}
}
$links
[]
=
array
(
...
...
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