It is a German website and dates are displayed as "21.01.2012 - 14:30 to 16:00". What I need would be a display as "21.01.2012 - 14:30 h bis 16:00 h". How could I change the output of the fields to fit to my ideas?

Comments

Rainer Stötter’s picture

A) Patch date.theme :

function theme_date_display_range($vars) {
$date1 = $vars['date1'];
$date2 = $vars['date2'];
$timezone = $vars['timezone'];
$attributes_start = $vars['attributes_start'];
$attributes_end = $vars['attributes_end'];

// Wrap the result with the attributes.
return t('!start-date to !end-date', array(
'!start-date' => '' . $date1 . '',
'!end-date' => '' . $date2 . $timezone. '',
));
}

B) change date_format_date( ) from date_api.module

C) Insert new date types in Konfiguration / Lokalisierung und Sprache / Datum und Uhrzeit/ Datumsformat:

Mittel: D, d.m.Y Angezeigt als: Sa, 21.01.2012
Lang: l, j. F Y Angezeigt als Samstag, 21. Januar 2012