From: Chad <ch...@ch...> - 2004-04-27 18:29:16
|
Daylight savings., differences in timezones, etc. Its set to 25 for a very specific reason, after testing many many calendars. When you add 6 days and 6 hours to midnight of a day, you will absolutely get the end of '1 week', no matter what. The same with adding 25 hours to a single day. This way we're always precisely into the next day. You will find some weeks will come up short with your way. Perhaps if you could submit the bug you saw so that we could look at it, and we could find another solution to fixing it. Without bug reports we'll never know what could have caused your issue. I also cannot find the post you are referring to in our forums. -C On Apr 27, 2004, at 10:51 AM, Pieter van Leuven wrote: > Hi, > > After testing phpicalendar last weekend I noticed something strange > (don't know exactly what) and I solved this by changing the > way $end_week_time and $thisdate was calculated in ./rss/rss.php: > > $end_week_time = $start_week_time + (6 * 25 * 60 * 60); > $thisdate = ($thisdate + (25 * 60 * 60)); > > I didn't understand the 25 so I changed this in 24 because is seems > more logical and my problem was solved. > > In the forum I saw a simular fault: > BTW, my calendar has a display bug this weekend where one event is > showing up on saturday when in ical it is scheduled for friday. Anybody > have and clue how to fix this? > > Can the day of 25 hours the problem that an event is showing up one > day later? > > (The same calculation is also done in ./functions/list_functions.php, > ./week.php and ./print.php) > > > Regards, > Pieter > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek > For a limited time only, get FREE Ground shipping on all orders of $35 > or more. Hurry up and shop folks, this offer expires April 30th! > http://www.thinkgeek.com/freeshipping/?cpg=12297 > _______________________________________________ > Phpicalendar-devel mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpicalendar-devel |