[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.15,1.16
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc class.datetime.inc.php,1.15,1.16 |
Date: |
Sat, 17 May 2003 17:25:11 -0400 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv23170
Modified Files:
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.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** class.datetime.inc.php 18 Apr 2003 08:37:04 -0000 1.15
--- class.datetime.inc.php 17 May 2003 21:25:09 -0000 1.16
***************
*** 63,73 ****
{
$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;
}
--- 63,75 ----
{
$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;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc class.datetime.inc.php,1.15,1.16,
Ralf Becker <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: phpgwapi/inc class.datetime.inc.php,1.5.2.12.2.1,1.5.2.12.2.2
- Next by Date:
[Phpgroupware-cvs] CVS: admin/inc class.boaccounts.inc.php,1.22.2.7,1.22.2.7.2.1 class.uiaccounts.inc.php,1.23.2.9.2.9,1.23.2.9.2.10
- Previous by thread:
[Phpgroupware-cvs] CVS: phpgwapi/inc class.datetime.inc.php,1.5.2.12.2.1,1.5.2.12.2.2
- Next by thread:
[Phpgroupware-cvs] CVS: admin/inc class.boaccounts.inc.php,1.22.2.7,1.22.2.7.2.1 class.uiaccounts.inc.php,1.23.2.9.2.9,1.23.2.9.2.10
- Index(es):