Calendar
| From: | Gerard Bowe | Date: | Thu, 29 Sep 2005 10:28:47 +0000 |
| Subject: | Calendar | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-21146@lists.php.net to get a copy of this message | ||
I have just started using PEAR::Calendar, with the examples provided.
Everything works ok, but have a problem with the "attach a payload" script (20.php), specifically the $events array;
If I change the format from;
$events[] = array(
'start' => $cal->cE->dateToStamp(2005, 9, 5, 10),
'end' => $cal->cE->dateToStamp(2005, 9, 10, 23, 59),
'desc' => 'Holidays!'
);
to (using just a mysql date field)
$events[] = array(
'start' => $cal->cE->dateToStamp(2005, 9, 5),
'end' => $cal->cE->dateToStamp(2005, 9, 10),
'desc' => 'Holidays!'
);
it calculates the dates wrong, ie instead of from 5/9/2005 to 10/9/2005, it returns values for 4/9/2005 to 9/9/2005 (out by 1 day).
Any help would be appreciated.
thanks
Ger