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.12.2.


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc class.datetime.inc.php,1.5.2.12.2.1,1.5.2.12.2.2
Date: Sat, 17 May 2003 17:23:14 -0400

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

Modified Files:
      Tag: Version-0_9_16-branch
        class.datetime.inc.php 
Log Message:
fixed wrong users_localtime time:
offset in user_prefs is not against GMT but servertime

Index: class.datetime.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.datetime.inc.php,v
retrieving revision 1.5.2.12.2.1
retrieving revision 1.5.2.12.2.2
diff -C2 -r1.5.2.12.2.1 -r1.5.2.12.2.2
*** class.datetime.inc.php      18 Apr 2003 08:21:48 -0000      1.5.2.12.2.1
--- class.datetime.inc.php      17 May 2003 21:23:12 -0000      1.5.2.12.2.2
***************
*** 62,72 ****
                                {
                                        $this->gmtnow = time() - 
(intval($GLOBALS['phpgw_info']['server']['tz_offset']) * 3600);
                                }
                                else
                                {
                                        $this->gmtnow = time() - 
($this->getbestguess() * 3600);
                                }
                        }
!                       $this->users_localtime = $this->gmtnow + 
$this->tz_offset;
                }
                
--- 62,74 ----
                                {
                                        $this->gmtnow = time() - 
(intval($GLOBALS['phpgw_info']['server']['tz_offset']) * 3600);
+                                       //echo "<p>set via 
tz_offset=".$GLOBALS['phpgw_info']['server']['tz_offset'].": 
gmtnow=".date('Y/m/d H:i',$this->gmtnow)."</p>\n";
                                }
                                else
                                {
                                        $this->gmtnow = time() - 
($this->getbestguess() * 3600);
+                                       //echo "<p>set via 
bestguess=".$this->getbestguess().": gmtnow=".date('Y/m/d 
H:i',$this->gmtnow)."</p>\n";
                                }
                        }
!                       $this->users_localtime = time() + $this->tz_offset;
                }
                





reply via email to

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