'sessions' => []
];
- //Append month for first day of month
+ //Detect month change
if ($month != $date->format('m')) {
$month = $date->format('m');
- $calendar[$Ymd]['title'] .= '/'.$month;
+ //Append month for first day of month
+ //XXX: except if today to avoid double add
+ if ($date->format('U') != strtotime('today')) {
+ $calendar[$Ymd]['title'] .= '/'.$month;
+ }
}
//Deal with today
if ($date->format('U') == ($today = strtotime('today'))) {
'sessions' => []
];
- //Append month for first day of month
+ //Detect month change
if ($month != $date->format('m')) {
$month = $date->format('m');
- $calendar[$Ymd]['title'] .= '/'.$month;
+ //Append month for first day of month
+ //XXX: except if today to avoid double add
+ if ($date->format('U') != strtotime('today')) {
+ $calendar[$Ymd]['title'] .= '/'.$month;
+ }
}
//Deal with today
if ($date->format('U') == ($today = strtotime('today'))) {