Commit 48f27789 authored by Eric Bremner's avatar Eric Bremner
Browse files

RT#845900: fixing the month having leading zeros for the mini calendar and filter

parent f14587d1
......@@ -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(
......
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