From 70a6356dd8c7e23b25cebc4e7a4946ab822ffe4a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 6 Jul 2003 23:40:53 +0000 Subject: [PATCH] a bit nicer fromat for the calendar_title --- infolog/inc/class.bolink.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/infolog/inc/class.bolink.inc.php b/infolog/inc/class.bolink.inc.php index 3b5a878f1e..dc353766ce 100644 --- a/infolog/inc/class.bolink.inc.php +++ b/infolog/inc/class.bolink.inc.php @@ -814,8 +814,10 @@ { return 'not an event !!!'; } - $name = $GLOBALS['phpgw']->common->show_date($this->bocal->maketime($event['start']) - $this->bocal->datetime->tz_offset); - $name .= ' -- ' . $GLOBALS['phpgw']->common->show_date($this->bocal->maketime($event['end']) - $this->bocal->datetime->tz_offset); + $format = $GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat'] . ' '. + ($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']; return $name;