[Vtigercrm-commits] [vtiger-commits] r10128 - /vtigercrm/branches/5.0.3/modules/Calendar/Calendar.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Feb 1 06:56:37 EST 2007
Author: richie
Date: Thu Feb 1 04:56:31 2007
New Revision: 10128
Log:
date range has been modified --Minnie
Modified:
vtigercrm/branches/5.0.3/modules/Calendar/Calendar.php
Modified: vtigercrm/branches/5.0.3/modules/Calendar/Calendar.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Calendar/Calendar.php (original)
+++ vtigercrm/branches/5.0.3/modules/Calendar/Calendar.php Thu Feb 1 04:56:31 2007
@@ -204,16 +204,16 @@
if ( $this->view == 'week')
{
$start_datetime = $this->date_time->getThisweekDaysbyIndex(0);
- $end_datetime = $this->date_time->get_first_day_of_changed_week('increment');
+ $end_datetime = $this->date_time->getThisweekDaysbyIndex(6);
} elseif($this->view == 'month') {
$start_datetime = $this->date_time->getThismonthDaysbyIndex(0);
- $end_datetime = $this->date_time->get_first_day_of_changed_month('increment');
+ $end_datetime = $this->date_time->getThismonthDaysbyIndex($this->date_time->daysinmonth-1);
} elseif($this->view == 'year'){
$start_datetime = $this->date_time->getThisyearMonthsbyIndex(0);
$end_datetime = $this->date_time->get_first_day_of_changed_year('increment');
}else {
$start_datetime = $this->date_time;
- $end_datetime = $this->date_time->get_changed_day('increment');
+ $end_datetime = $this->date_time->getTodayDatetimebyIndex(23);
}
$activities = Array();
More information about the vtigercrm-commits
mailing list