a bit nicer fromat for the calendar_title

This commit is contained in:
Ralf Becker 2003-07-06 23:40:53 +00:00
parent 336c0d0cdf
commit 70a6356dd8

View File

@ -814,8 +814,10 @@
{ {
return 'not an event !!!'; return 'not an event !!!';
} }
$name = $GLOBALS['phpgw']->common->show_date($this->bocal->maketime($event['start']) - $this->bocal->datetime->tz_offset); $format = $GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat'] . ' '.
$name .= ' -- ' . $GLOBALS['phpgw']->common->show_date($this->bocal->maketime($event['end']) - $this->bocal->datetime->tz_offset); ($GLOBALS['phpgw_info']['user']['preferences']['common']['timeformat'] == '12' ? 'h:i a' : 'H:i');
$name = $GLOBALS['phpgw']->common->show_date($this->bocal->maketime($event['start']) - $this->bocal->datetime->tz_offset,$format);
$name .= ': ' . $event['title']; $name .= ': ' . $event['title'];
return $name; return $name;