phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: phpgwapi/inc class.datetime.inc.php,1.5.2.9,1.5.


From: Mark A Peters <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc class.datetime.inc.php,1.5.2.9,1.5.2.10
Date: Sat, 21 Sep 2002 17:54:13 -0400

Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv2644/phpgwapi/inc

Modified Files:
      Tag: Version-0_9_14-branch
        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.5.2.9
retrieving revision 1.5.2.10
diff -C2 -r1.5.2.9 -r1.5.2.10
*** class.datetime.inc.php      17 Sep 2002 10:03:27 -0000      1.5.2.9
--- class.datetime.inc.php      21 Sep 2002 21:54:11 -0000      1.5.2.10
***************
*** 53,57 ****
                {
                        $this->tz_offset = 3600 * 
intval($GLOBALS['phpgw_info']['user']['preferences']['common']['tz_offset']);
!                       print_debug('datetime::datetime::gmtnow',$this->gmtnow);
  
                        $error_occured = True;
--- 53,57 ----
                {
                        $this->tz_offset = 3600 * 
intval($GLOBALS['phpgw_info']['user']['preferences']['common']['tz_offset']);
!                       
print_debug('datetime::datetime::gmtnow',$this->gmtnow,'api');
  
                        $error_occured = True;
***************
*** 88,93 ****
                                // 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)
                                {
--- 88,93 ----
                                // 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)
                                {
***************
*** 99,104 ****
                                        $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));
                                }
                        }
--- 99,104 ----
                                        $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');
                                }
                        }
***************
*** 136,147 ****
                        $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);
                }
--- 136,147 ----
                        $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);
                }
***************
*** 149,153 ****
                function getbestguess()
                {
!                       print_debug('datetime::datetime::debug: Inside getting 
from local server');
                        $server_time = time();
                        // Calculate GMT time...
--- 149,153 ----
                function getbestguess()
                {
!                       print_debug('datetime::datetime::debug: Inside getting 
from local server','api');
                        $server_time = time();
                        // Calculate GMT time...





reply via email to

[Prev in Thread] Current Thread [Next in Thread]