aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-11-23 21:41:51 +0000
committerChad Little <clittle@users.sourceforge.net>2003-11-23 21:41:51 +0000
commit4755bf8f506fda3b64b8267c10d06b6b747f8321 (patch)
treee556aed54223fe9aa4f7ec77c8e206768f854cde /functions
parentbd7430ee341ee98562826824f7fb223b66a94993 (diff)
downloadphpicalendar-4755bf8f506fda3b64b8267c10d06b6b747f8321.tar.gz
phpicalendar-4755bf8f506fda3b64b8267c10d06b6b747f8321.tar.bz2
phpicalendar-4755bf8f506fda3b64b8267c10d06b6b747f8321.zip
Fixed some other bleed_time issues, now any bleeding event displays the
real end time no matter if its split or not.
Diffstat (limited to 'functions')
-rw-r--r--functions/ical_parser.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index 2d23d79..e2d9a97 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -254,8 +254,9 @@ foreach ($cal_filelist as $filename) {
$end_time_tmp = $end_time;
} else {
$end_time_tmp = '2400';
- $display_end_tmp = '0000';
+ $display_end_tmp = $end_time;
}
+
$nbrOfOverlaps = checkOverlap($start_date_tmp, $start_time_tmp, $end_time_tmp, $uid);
$master_array[$start_date_tmp][$time_tmp][$uid] = array ('event_start' => $start_time_tmp, 'event_end' => $end_time_tmp, 'display_end' => $display_end_tmp, 'start_unixtime' => $start_unixtime, 'end_unixtime' => $end_unixtime, 'event_text' => $summary, 'event_length' => $length, 'event_overlap' => $nbrOfOverlaps, 'description' => $description, 'status' => $status, 'class' => $class, 'spans_day' => true, 'location' => $location, 'organizer' => serialize($organizer), 'attendee' => serialize($attendee), 'calnumber' => $calnumber, 'calname' => $actual_calname, 'url' => $url );
$start_tmp = strtotime('+1 day',$start_tmp);
@@ -598,11 +599,11 @@ foreach ($cal_filelist as $filename) {
$end_time_tmp = $end_time;
} else {
$end_time_tmp = '2400';
- $display_end_tmp = '0000';
+ $display_end_tmp = $end_time;
}
// Let's double check the until to not write past it
- $until_check = $recur_data_date.$time_tmp.'00';
+ $until_check = $start_date_tmp.$time_tmp.'00';
if ($abs_until > $until_check) {
$nbrOfOverlaps = checkOverlap($start_date_tmp, $start_time_tmp, $end_time_tmp, $uid);
$master_array[$start_date_tmp][$time_tmp][$uid] = array ('event_start' => $start_time_tmp, 'event_end' => $end_time_tmp, 'display_end' => $display_end_tmp, 'start_unixtime' => $start_unixtime_tmp, 'end_unixtime' => $end_unixtime_tmp, 'event_text' => $summary, 'event_length' => $length, 'event_overlap' => $nbrOfOverlaps, 'description' => $description, 'status' => $status, 'class' => $class, 'spans_day' => true, 'location' => $location, 'organizer' => serialize($organizer), 'attendee' => serialize($attendee), 'calnumber' => $calnumber, 'calname' => $actual_calname, 'url' => $url) ;

© 2014-2024 Faster IT GmbH | imprint | privacy policy