From: Nicolas C. <nic...@gm...> - 2005-12-13 00:26:17
|
Hi, I've just found something totally crazy. I've not yet solved the problem, I can't find a way to handle it. A teacher made reccuring event ending with a 'UNTIL' date. The english version displays it allright http://eidolon.univ-lyon2.fr/~nicoconta/calendrier/week.php?cal=3DMASTER&ge= tdate=3D20060207 but the french (and for the most danish, and dutch) one doesn't http://eidolon.univ-lyon2.fr/~nicoconta/phpicalendar-2.1/week.php?cal=3DMAS= TER2&getdate=3D20060207 (I've changed the calendar's name for them not to be parsed in the same '/tmp' file) Have you ever seen something like that (I've tried every config variable, and the bug is language related) ? I'll scan the /tmp files, tomorrow and keep you informed, but if you have any advice about where to look at, it'll be helpfull. Nicolas. Ps: Even if my example use v2.1, the bug is also in the CVS version. |
From: Jim Hu <ji...@ta...> - 2005-12-13 00:49:40
|
I'm betting on line 515 in ical_parser.php: $byday[] =3D strtoupper(substr($daysofweekshort_lang[date('w', =20 $start_date_time)], 0, 2)); This probably causes two2threeCharDays($day) on line 519 to return =20 undef. Line numbers refer to CVS. Need to think about the solution... =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Jim Hu On Dec 12, 2005, at 6:26 PM, Nicolas Contamin wrote: > Hi, > > I've just found something totally crazy. > I've not yet solved the problem, I can't find a way to handle it. > > A teacher made reccuring event ending with a 'UNTIL' date. > The english version displays it allright > http://eidolon.univ-lyon2.fr/~nicoconta/calendrier/week.php?=20 > cal=3DMASTER&getdate=3D20060207 > > but the french (and for the most danish, and dutch) one doesn't > http://eidolon.univ-lyon2.fr/~nicoconta/phpicalendar-2.1/week.php?=20 > cal=3DMASTER2&getdate=3D20060207 > > (I've changed the calendar's name for them not to be parsed in the > same '/tmp' file) > Have you ever seen something like that (I've tried every config > variable, and the bug is language related) ? > > I'll scan the /tmp files, tomorrow and keep you informed, but if you > have any advice about where to look at, it'll be helpfull. > > > Nicolas. > Ps: Even if my example use v2.1, the bug is also in the CVS version. > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through =20 > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD =20 > SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id=16865&op=3Dclick > _______________________________________________ > Phpicalendar-devel mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpicalendar-devel |
From: Jim Hu <ji...@ta...> - 2005-12-13 02:06:16
|
In the last email I suggested that the problem is in: $byday[] =3D strtoupper(substr($daysofweekshort_lang[date('w', =20 $start_date_time)], 0, 2)); OK, in English, this line loads the $byday array with SUN, MON, TUE, =20 WED etc. date(w,$start_date_time) gives a number for the day of the week, 0-6, =20= where 0=3DSunday, 1=3DMonday etc. $daysofweekshort_lang[0-6] in French takes its value from array =20 ('Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi') substr trims to 3 letters, and then all hell breaks loose. The goal =20 is to get the english 3 letter codes in, since those are what is =20 otherwise pulled from the .ics, right? So...I think this should work: $byday[] =3D strtoupper(date('D', $start_date_time)); =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Jim Hu On Dec 12, 2005, at 6:26 PM, Nicolas Contamin wrote: > Hi, > > I've just found something totally crazy. > I've not yet solved the problem, I can't find a way to handle it. > > A teacher made reccuring event ending with a 'UNTIL' date. > The english version displays it allright > http://eidolon.univ-lyon2.fr/~nicoconta/calendrier/week.php?=20 > cal=3DMASTER&getdate=3D20060207 > > but the french (and for the most danish, and dutch) one doesn't > http://eidolon.univ-lyon2.fr/~nicoconta/phpicalendar-2.1/week.php?=20 > cal=3DMASTER2&getdate=3D20060207 > > (I've changed the calendar's name for them not to be parsed in the > same '/tmp' file) > Have you ever seen something like that (I've tried every config > variable, and the bug is language related) ? > > I'll scan the /tmp files, tomorrow and keep you informed, but if you > have any advice about where to look at, it'll be helpfull. > > > Nicolas. > Ps: Even if my example use v2.1, the bug is also in the CVS version. > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through =20 > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD =20 > SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id=16865&op=3Dclick > _______________________________________________ > Phpicalendar-devel mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpicalendar-devel |
From: Nicolas C. <nic...@gm...> - 2005-12-13 17:17:45
|
On 12/13/05, Jim Hu <ji...@ta...> wrote: > In the last email I suggested that the problem is in: > > $byday[] =3D strtoupper(substr($daysofweekshort_lang[date('w', > $start_date_time)], 0, 2)); > > The goal is to get the english 3 letter codes in, since those are what is > otherwise pulled from the .ics, right? Right. > So...I think this should work: > > $byday[] =3D strtoupper(date('D', $start_date_time)); That's good, but you also have to erase the line 520 : '$day =3D two2threeCharDays($day);' Danon'. note: That doesn't resolve the 'php 5.1.1' bug mentionned on the bbs (http://www.phpicalendar.net/forums/viewtopic.php?t=3D325). -- I'm a poor and lonesome Yaourt... (Air connu) |