|
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
|