mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 03:41:53 +02:00
enable more debug output
This commit is contained in:
parent
27db6671b0
commit
ab21a58d75
@ -62,12 +62,12 @@
|
|||||||
if(isset($GLOBALS['phpgw_info']['server']['tz_offset']))
|
if(isset($GLOBALS['phpgw_info']['server']['tz_offset']))
|
||||||
{
|
{
|
||||||
$this->gmtnow = time() - ((int)$GLOBALS['phpgw_info']['server']['tz_offset'] * 3600);
|
$this->gmtnow = time() - ((int)$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";
|
print_debug('datetime::datetime::tz_offset',"set via tz_offset=".$GLOBALS['phpgw_info']['server']['tz_offset'].": gmtnow=".date('Y/m/d H:i',$this->gmtnow),'api');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->gmtnow = time() - ($this->getbestguess() * 3600);
|
$this->gmtnow = time() - ($this->getbestguess() * 3600);
|
||||||
//echo "<p>set via bestguess=".$this->getbestguess().": gmtnow=".date('Y/m/d H:i',$this->gmtnow)."</p>\n";
|
print_debug('datetime::datetime::bestguess',"set via bestguess=".$this->getbestguess().": gmtnow=".date('Y/m/d H:i',$this->gmtnow),'api');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->users_localtime = time() + $this->tz_offset;
|
$this->users_localtime = time() + $this->tz_offset;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user