Home » Date and Time » Calendar » Bug #256
Example 11.php does not work.
Details
| Submitted | 2003-11-16 04:41 UTC |
|---|---|
| From | softwareace at yahoo dot com |
| Assigned | hfuecks |
| Status | Closed |
| Package | Calendar |
| PHP Version | 4.3.3 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2003-11-16 04:41 UTC] softwareace at yahoo dot com
Description:
------------
On your examples, you have a method for adding a payload to a Calendar_Decorator object. Your example shows the loading of the Calendar_Decorator object, but, it does not output the information.
Reproduce code:
---------------
http://pearcalendar.sourceforge.net/examples/11.php
Expected result:
----------------
The payload information
Actual result:
--------------
No payload information shown
[2003-11-16 04:59 UTC] softwareace at yahoo dot com
To fix this bug, check the setTimestamp function in Calendar.php.
function setTimestamp($ts)
{
$this->year = $this->cE->stampToYear($ts); <- missing
$this->month = $this->cE->stampToMonth($ts);
[2003-11-18 09:17 UTC] hfuecks at php dot net
This bug has been fixed in CVS.
In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.
In case this was a pear.php.net website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PEAR better.
Thanks for tip off. This is now fixed in the Sourceforge CVS (http://sf.net/projects/pearcalendar). Next release is coming up shortly (hopefully within a week or two)