diff --git a/calendar/inc/functions.inc.php b/calendar/inc/functions.inc.php index 51f21c041c..9aee9df596 100755 --- a/calendar/inc/functions.inc.php +++ b/calendar/inc/functions.inc.php @@ -618,8 +618,8 @@ "year=" . date("Y",$date) . "&month=" . date("m",$date) . "&day=" . date("d",$date) - . "&hour=" . substr($time,0,2) - . "&minute=" . substr($time,2,2)) + . "&hour=" . substr($time,0,strpos($time,":")) + . "&minute=" . substr($time,strpos($time,":")+1,2)) . "\">$time"; if ($rowspan > 1) {