Skip to content

Commit

Permalink
BUGFIX: Final day of month was incorrect on months with 31 days.
Browse files Browse the repository at this point in the history
  • Loading branch information
unclecheese committed Oct 31, 2012
1 parent 048c31e commit 739dc52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -501,9 +501,9 @@ public function setWeekendView() {


public function setMonthView() {
$this->view = "month";
$this->view = "month";
$this->startDate = sfDate::getInstance()->firstDayOfMonth();
$this->endDate = sfDate::getInstance()->finalDayOfMonth();
$this->endDate = sfDate::getInstance($this->startDate)->finalDayOfMonth();
}


Expand Down

0 comments on commit 739dc52

Please sign in to comment.