Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.5.5

Bug #3073 Calendar_Month_Weekdays, empty days at year change
Submitted: 2004-12-31 08:40 UTC
From: phade at hot dot ee Assigned: quipo
Status: Closed Package: Calendar
PHP Version: 4.3.9 OS: Redhat 9
Roadmaps: (Not assigned)    
Subscription  


 [2004-12-31 08:40 UTC] phade at hot dot ee
Description: ------------ Unless I am missing something empty days (days that stay to the following month) at the end of the last month of the year are incorrect. They display month number that is out of range and also do not adjust the year. Reproduce code: --------------- require_once "Calendar/Month/Weekdays.php"; $myMonth = new Calendar_Month_Weekdays(2004,12); while($day = $myMonth->fetch()) { print_r($day); } Expected result: ---------------- print_r() output of the first empty day in the while loop should look like this calendar_day Object ( [cE] => calendar_engine_unixts Object ( ) [validator] => [year] => 2005 [month] => 1 [day] => 1 [hour] => 0 [minute] => 0 [second] => 0 [selected] => [children] => Array ( ) [first] => [last] => [empty] => 1 ) Actual result: -------------- print_r() output of the first empty day in the while loop looks like this: calendar_day Object ( [cE] => calendar_engine_unixts Object ( ) [validator] => [year] => 2004 [month] => 13 [day] => 1 [hour] => 0 [minute] => 0 [second] => 0 [selected] => [children] => Array ( ) [first] => [last] => [empty] => 1 )

Comments

 [2005-10-20 09:16 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!