diff options
author | Jason Oster <parasytic@users.sourceforge.net> | 2009-07-08 18:28:13 +0000 |
---|---|---|
committer | Jason Oster <parasytic@users.sourceforge.net> | 2009-07-08 18:28:13 +0000 |
commit | ca4ff2e70c0e5de884c77d5183a603b741f9e05d (patch) | |
tree | a04a6fd3518d5914d55a07dc7a942c59fe2d913a /functions/parse/end_vevent.php | |
parent | bc77101e73f5fdf8eeddf9bbb1d434fb396fb089 (diff) | |
download | phpicalendar-ca4ff2e70c0e5de884c77d5183a603b741f9e05d.tar.gz phpicalendar-ca4ff2e70c0e5de884c77d5183a603b741f9e05d.tar.bz2 phpicalendar-ca4ff2e70c0e5de884c77d5183a603b741f9e05d.zip |
Fix overlapping events which span a day, fix erroneously adding 15 minutes to events which span a day or more and end on the same time they start, add day-spanning icons in day and week views
Diffstat (limited to 'functions/parse/end_vevent.php')
-rw-r--r-- | functions/parse/end_vevent.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/parse/end_vevent.php b/functions/parse/end_vevent.php index 8e8186a..a6546d5 100644 --- a/functions/parse/end_vevent.php +++ b/functions/parse/end_vevent.php @@ -66,7 +66,7 @@ if ($length < 0){ $end_time = $start_time; } # get hour and minute adjusted to allowed grid times -$drawKey = drawEventTimes($start_time, $end_time); +$drawKey = drawEventTimes($start_time, $end_time, ($length >= (60*60*24))); preg_match ('/([0-9]{2})([0-9]{2})/', $drawKey['draw_start'], $time3); preg_match ('/([0-9]{2})([0-9]{2})/', $drawKey['draw_end'], $time4); $hour = $time3[1]; @@ -349,7 +349,7 @@ foreach($recur_data as $recur_data_unixtime) { 'sequence' => $sequence, 'recur' => $recur ); - } + } if($time_key > -1) checkOverlap($this_date_tmp, $time_key, $uid); } } # end foreach recur_data |