Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I found in calendar.theme that I can change the way that the dates look in each view (day, week, year, etc), so I edited this line (#232):
case 'DAY':
$stamp = date_gmmktime(array('year' => $view->year, 'mon' => $view->month, 'mday' => $value));
return date_format_date('l, F j Y', $stamp);
and left it like this:
case 'DAY':
$stamp = date_gmmktime(array('year' => $view->year, 'mon' => $view->month, 'mday' => $value));
return date_format_date('l, j - F - Y', $stamp);
But it won't work, my calendar still shows the date in the old format in the daily view... any idea why I can't see the change?
Comments
Comment #1
zetxek CreditAttribution: zetxek commentedNevermind, I realised I had to change the next function, theme_calendar_nav_title($field_type, $view).