Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
0 + 3 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: PiCal all day event difficulty
by Anonymous on 2004/4/20 6:34:49

I'm wondering if this is a bug.

My timezone and server timezone are both set to -7 in the preferences.

I add a recurring event 9 times starting April 26 from 19:00 - 21:00 (2 hours).

In April, the time shows correctly, but for May onward, it shows 20:00 - 22:00. Then, in November, it goes back to showing 19:00 - 21:00.

Even more strange is if I click to edit the May event, the time shows up as 19:00 - 21:00, but viewing it shows 20:00 - 22:00. If I check the value in the database, the unix time stamp converts to the 20:00 - 22:00 so it is being stored in the DB incorrectly.

Nonetheless, the one hour difference from May - November almost coincides with daylight savings time. Clocks move forward in April and back in October. I'm wondering if there is some code buried in there that is incorrectly and automatically adjusting for Daylight Savings time? I jsut can't seem to find it.
Re: PiCal all day event difficulty
by kjs222 on 2004/1/22 18:03:13

FIX #1
piCal.php-3561

Origional:
le="color: #000000"><?php if( $start <= $event->start ) continue;


Modified:
le="color: #000000"><?php if( $start <= $event->start+150000 ) continue;


This fixes the problem where on all day events the first day has two entries (one for the origional entry, one for the first recursion).


FIX #2

piCal.php-3488

Origional:
le="color: #000000"><?php $duration = $event->end - $event->start ;


Modified:

if ($event->allday) $duration=1;
else $duration = $event->end - $event->start;


This fixes the problem where all-day events span two days when recurrant on yearly basis.



Please note that for both fixes above they only effect yearly recursion. Very likely monthly and daily recursion have the exact same problem. I'm sure GIJOE and others familiar with the code will quickly see where else this fix is needed. I hope the change is quickly implemented into the module and a new release follows shortly.

Happy Xoopsing,
Keith
Re: PiCal all day event difficulty
by kjs222 on 2004/1/22 18:00:05

Well, I finally banged my head on this long enough to figure out the bug:

(I am referring to piCal .60... it is likely the same lines exist and need editing in .50 as well. You can find them by searching for the origional line in the piCal.php code).

I have had to break up the solution into seperate posts due to bb post error (I think it's a Safari/mac bug)
Re: PiCal all day event difficulty
by kjs222 on 2004/1/22 17:02:44

One more piece of information; the problem only happens for months after April... odd.
Re: PiCal all day event difficulty
by kjs222 on 2004/1/22 16:55:19

As feeble as it seems, I have tried to navigate through http://www.xoopscube.jp and found this thread:

http://www.xoopscube.jp/modules/newbb/viewtopic.php?topic_id=2568&forum=17#forumpost13747

It looks like it might deal with the issue I am discussing... but the online translators don't do a good job... can anyone translate and tell me if this could solve my problem?

Thanks,
Keith

Who's Online

166 user(s) are online (126 user(s) are browsing Support Forums)


Members: 0


Guests: 166


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits