[Vtigercrm-commits] [vtiger-commits] r6234 - /vtigercrm/trunk/modules/Calendar/Calendar.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sat May 20 10:16:25 EDT 2006
Author: saraj
Date: Sat May 20 08:16:21 2006
New Revision: 6234
Log:
hour_format and time has been assigned from user selection
Modified:
vtigercrm/trunk/modules/Calendar/Calendar.php
Modified: vtigercrm/trunk/modules/Calendar/Calendar.php
==============================================================================
--- vtigercrm/trunk/modules/Calendar/Calendar.php (original)
+++ vtigercrm/trunk/modules/Calendar/Calendar.php Sat May 20 08:16:21 2006
@@ -13,8 +13,8 @@
var $week_hour_slices = Array();
var $slices = Array();
/* for dayview */
- var $day_start_hour=8;
- var $day_end_hour=18;
+ var $day_start_hour=0;
+ var $day_end_hour=23;
var $sharedusers=Array();
/*
constructor
@@ -135,6 +135,12 @@
function add_Activities($current_user,$free_busy='')
{
+ $this->hour_format = $current_user->hour_format;
+ list($sthour,$stmin)= explode(":",$current_user->start_hour);
+ $hr = $sthour+0;
+ list($endhour,$endmin)=explode(":",$current_user->end_hour);
+ $this->day_start_hour=$hr;
+ $this->day_end_hour=$endhour;
if ( $this->view == 'week')
{
$start_datetime = $this->date_time->getThisweekDaysbyIndex(0);
More information about the vtigercrm-commits
mailing list