[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/inc class.datetime.inc.php,1.11,1.12
From: |
Mark A Peters <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc class.datetime.inc.php,1.11,1.12 |
Date: |
Sat, 21 Sep 2002 17:54:22 -0400 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv2673/phpgwapi/inc
Modified Files:
class.datetime.inc.php
Log Message:
Will now only print debug statements when DEBUG_API is set.
Index: class.datetime.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.datetime.inc.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** class.datetime.inc.php 17 Sep 2002 10:03:37 -0000 1.11
--- class.datetime.inc.php 21 Sep 2002 21:54:20 -0000 1.12
***************
*** 54,58 ****
{
$this->tz_offset = 3600 *
intval($GLOBALS['phpgw_info']['user']['preferences']['common']['tz_offset']);
! print_debug('datetime::datetime::gmtnow',$this->gmtnow);
$error_occured = True;
--- 54,58 ----
{
$this->tz_offset = 3600 *
intval($GLOBALS['phpgw_info']['user']['preferences']['common']['tz_offset']);
!
print_debug('datetime::datetime::gmtnow',$this->gmtnow,'api');
$error_occured = True;
***************
*** 89,94 ****
// host: 129.6.15.28
// Value returned is 52384 02-04-20 13:55:29 50
0 0 9.2 UTC(NIST) *
! print_debug('Server datetime',time());
! print_debug('Temporary NTP datetime',$line);
if ($array[5] == 4)
{
--- 89,94 ----
// host: 129.6.15.28
// Value returned is 52384 02-04-20 13:55:29 50
0 0 9.2 UTC(NIST) *
! print_debug('Server datetime',time(),'api');
! print_debug('Temporary NTP
datetime',$line,'api');
if ($array[5] == 4)
{
***************
*** 100,105 ****
$time = explode(':',$array[2]);
$this->gmtnow =
mktime(intval($time[0]),intval($time[1]),intval($time[2]),intval($date[1]),intval($date[2]),intval($date[0])
+ 2000);
! print_debug('Temporary RFC
epoch',$this->gmtnow);
! print_debug('GMT',date('Ymd
H:i:s',$this->gmtnow));
}
}
--- 100,105 ----
$time = explode(':',$array[2]);
$this->gmtnow =
mktime(intval($time[0]),intval($time[1]),intval($time[2]),intval($date[1]),intval($date[2]),intval($date[0])
+ 2000);
! print_debug('Temporary RFC
epoch',$this->gmtnow,'api');
! print_debug('GMT',date('Ymd
H:i:s',$this->gmtnow),'api');
}
}
***************
*** 137,148 ****
$date = strip_tags($file[56]);
! print_debug('GMT DateTime',$date.' '.$time);
$dt_array = explode(' ',$date);
$temp_datetime = $dt_array[0].'
'.substr($dt_array[2],0,-1).' '.substr($dt_array[1],0,3).' '.$dt_array[3].'
'.$time.' GMT';
! print_debug('Reformulated GMT DateTime',$temp_datetime);
$this->gmtnow =
$this->convert_rfc_to_epoch($temp_datetime);
! print_debug('this->gmtnow',$this->gmtnow);
! print_debug('server time',$server_time);
! print_debug('server DateTime',date('D, d M Y
H:i:s',$server_time));
return intval(($server_time - $this->gmtnow) / 3600);
}
--- 137,148 ----
$date = strip_tags($file[56]);
! print_debug('GMT DateTime',$date.' '.$time,'api');
$dt_array = explode(' ',$date);
$temp_datetime = $dt_array[0].'
'.substr($dt_array[2],0,-1).' '.substr($dt_array[1],0,3).' '.$dt_array[3].'
'.$time.' GMT';
! print_debug('Reformulated GMT
DateTime',$temp_datetime,'api');
$this->gmtnow =
$this->convert_rfc_to_epoch($temp_datetime);
! print_debug('this->gmtnow',$this->gmtnow,'api');
! print_debug('server time',$server_time,'api');
! print_debug('server DateTime',date('D, d M Y
H:i:s',$server_time),'api');
return intval(($server_time - $this->gmtnow) / 3600);
}
***************
*** 150,154 ****
function getbestguess()
{
! print_debug('datetime::datetime::debug: Inside getting
from local server');
$server_time = time();
// Calculate GMT time...
--- 150,154 ----
function getbestguess()
{
! print_debug('datetime::datetime::debug: Inside getting
from local server','api');
$server_time = time();
// Calculate GMT time...
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc class.datetime.inc.php,1.11,1.12,
Mark A Peters <address@hidden> <=