|
From: dre <dr...@an...> - 2002-10-23 06:51:22
|
Chad,
I had to change that at one point, because start and end times were not
rounded the same way, which resulted in events that visually overlapped but
actually (based on the real times) didn't.
So at the moment start and end times are rounded following the same logic:
- in draw_functions.php
$sta_min = sprintf("%02d", floor($sta_min / $gridLength) * $gridLength);
// same for end time
i.e. all minutes are rounded _down_ to next grid point (e.g. :13 is rounded
down to :00). My decision was based on the start time: better display the
start of the event earlier than later...
So, if we want to change that behaviour it's only to be changed in the
'drawEventTimes' routine, although - as mentioned above - it must be
consistent for start and end times. All calculations for overlapping events
are based on the returned drawTimes.
David.
-----Original Message-----
From: php...@li...
[mailto:php...@li...]On Behalf Of Chad
Sent: Tuesday, October 22, 2002 10:58 PM
To: php...@li...
Subject: [PHPiCalendar-DEV] Rounding of event times
Drei -
Event times seem to always round down, like 7:13 will round to 7:00. Is
there anything we can do about this is or is it needed to properly
figure out overlapping events?
-C
-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ad.doubleclick.net/clk;4699841;7576301;v?http://www.sun.com/javavote
_______________________________________________
Phpicalendar-devel mailing list
Php...@li...
https://lists.sourceforge.net/lists/listinfo/phpicalendar-devel
|